[r6rs-discuss] A different take on libraries
On Nov 15, 2006, at 11:13 AM, Jens Axel S?gaard wrote:
> The last paragraph of section 6.2 reads:
>
> An implementation is further allowed to start each expansion of a
> library form by removing all library bindings above phase 0.
>
> Can this be interpreted as a license to write macros that expand to
> imports? If so you can add your own clauses. I am not 100% sure, that
> this is allowed.
The line from 6.2 can be deciphered as: "Don't rely on side effects
when you write macros." The compiler is licensed to reload the
compile-time information before expanding a form so any state saved
from previous invocations of a macros may not persist to the next
invocation.
Aziz,,,
Received on Wed Nov 15 2006 - 11:37:08 UTC
This archive was generated by hypermail 2.3.0
: Wed Oct 23 2024 - 09:15:00 UTC