guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does declaration order matter in guile?


From: Sascha Ziemann
Subject: Re: Does declaration order matter in guile?
Date: Mon, 13 Feb 2023 09:05:40 +0100

Am So., 12. Feb. 2023 um 20:52 Uhr schrieb Taylan Kammer
<taylan.kammer@gmail.com>:
>
> 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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]