From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sascha Ziemann Newsgroups: gmane.lisp.guile.user Subject: Re: Does declaration order matter in guile? Date: Mon, 13 Feb 2023 09:05:40 +0100 Message-ID: References: <3c8f41c0-2978-1ab8-b265-a8ab59030929@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10028"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Feb 13 09:06:40 2023 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRTrE-0002FX-4S for guile-user@m.gmane-mx.org; Mon, 13 Feb 2023 09:06:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRTqX-0003Yv-L8; Mon, 13 Feb 2023 03:05:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRTqV-0003V3-7t for guile-user@gnu.org; Mon, 13 Feb 2023 03:05:55 -0500 Original-Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRTqT-0001aC-PW for guile-user@gnu.org; Mon, 13 Feb 2023 03:05:54 -0500 Original-Received: by mail-oi1-x233.google.com with SMTP id c15so9504788oic.8 for ; Mon, 13 Feb 2023 00:05:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=J40ey2aYj6cD2GvCf+FMau129gGtpnkgiJ/0T9bjoUY=; b=A5fN1Pc90smesh6IDRB87g8xbLzZyggLEi8yaeQIGuL94w5t78gBdGGIGciRWLfsAs hrqptReurNkErgqWSAJhFok7FD71Sol/nI9X6wSdWDlKRU2s1LvENeZ3gQkPsqcGcoik a3SraQ2qTLVVNJHDvnrkKtCEJ0E3BbHgVDI7t32Oer/X+7vLaAqsqh1uAjzCHNg0fu8p Dpb+1dIj/nl2qOAbBWOF2vIr72/XcV+mAUVNuOk2ShTSCjWQFiBo4+tOhDUXSMLL1a3X 96UWeKkVIjcuaYASLtCPKOKNB3SpybHCPBMRu17xaWeuVVtDBtsn1r4gHXkvC9sL6hdt vVFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=J40ey2aYj6cD2GvCf+FMau129gGtpnkgiJ/0T9bjoUY=; b=UauMoLS/NAiT3zDauV/8yXp5Tt3r6nQ3pWcxMKPRgMZH3RYguG1cEAL3pM29jG50+J r1Ez5HSAU4OnY6q2/Zp3hyQPh7+i4V9NoUNPvJVsNJH4vj2m/pxwNyvWOFlrj/Ss9M9j aHvaBhEmDKKNaJ8qgdTVg+Xmct1ZDpk0AXMNbBcUIp0Gd2DjDCA91v5Q0j01kjI3kFQK 0nR5eBMFCAz4uXrJu3Ye+Q+j/fIpYAgnRJSWDV5Hod2t4/BTizlg5vqYpv+mlVP6RE77 mYsECSF6ZHweb480chqNw1F6MHUMCHbXgidgdo1kDj0YJZ6EclrVUCH53zbGoPQWnC7J X3Fw== X-Gm-Message-State: AO0yUKUZaDN8f1Um8sN9D2NGTDXIRucC4CjXMnrLD7M8it0oCKuZTCj5 JAA8OGR4YpPBpurZTAtQYDvCrXRFTG2+z24+nalflwWaC0o= X-Google-Smtp-Source: AK7set9xWUvUOtcFv/myOtD5CrvqCYnNhJIyZ3fO4PXdVapDD5NqVw4Rb7snkUFL2+9zV8glf2gtQzfO+jfZUnddKhI= X-Received: by 2002:a05:6808:1452:b0:37d:9220:d8f0 with SMTP id x18-20020a056808145200b0037d9220d8f0mr154672oiv.140.1676275551525; Mon, 13 Feb 2023 00:05:51 -0800 (PST) In-Reply-To: <3c8f41c0-2978-1ab8-b265-a8ab59030929@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::233; envelope-from=ceving@gmail.com; helo=mail-oi1-x233.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:18904 Archived-At: Am So., 12. Feb. 2023 um 20:52 Uhr schrieb Taylan Kammer : > > On 12.02.2023 19:46, wolf wrote: > > > 1. When does order matter? What is going on here? > > The order matters in this case because the SRFI-9 implementation in Guile defines > syntax (macros) rather than just variables bound to procedures. This is a huge problem of Scheme in general, that you can not distinguish between procedures and macros just by looking at the code. You have to know it or you have to look it up in the manual. You also can not ask Scheme about macros, because macros are not first-class-citizens. This might be interesting: https://matt.might.net/articles/metacircular-evaluation-and-first-class-run-time-macros/