chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] module and macro documentation


From: felix winkelmann
Subject: Re: [Chicken-users] module and macro documentation
Date: Sat, 24 May 2008 16:00:43 +0200

On Sat, May 24, 2008 at 11:24 AM, Peter Bex <address@hidden> wrote:
>
> Another question: what will happen to use, require, require-extension,
> require-for-syntax and the (declare ...) language?
> This is a nice time to clean up some stuff (for example, removing the
> various confusing require-* forms)

It's true that all these forms are confusing. The situation will become
simpler when using modules, as compile-time code is loaded
automatically (when using import libraries). "require-for-syntax"
will not be necessary, I could imagine. "require" is just a load-once
and doesn't hurt. "require-extension" is still required (so to speak),
since it is the official way of loading extensions, and the module
system does explicitly not address the difference between loading
(require-extension) and linking (declare (uses ...)) to allow static
linking (i.e. import doesn't mean: load code - it just makes module
bindings available. Throwing these together makes static linking
and cross-compilation harder).
"use" is just a shortcut for "require-extension", just like "add1" is
a shortcut.


cheers,
felix




reply via email to

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