chicken-hackers
[Top][All Lists]
Advanced

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

[Chicken-hackers] [PATCH 0/1] Add "chicken.module" module


From: Evan Hanson
Subject: [Chicken-hackers] [PATCH 0/1] Add "chicken.module" module
Date: Sat, 17 Jun 2017 12:05:35 +1200

Hi all,

Here's a patch that adds a "chicken.module" module according to some of
the discussion in the "Add unexport form to modules" thread, and from
the "undecided" section of c-l-r (which already proposed a lot of the
same changes, in fact).

The library is syntax-only and contains CHICKEN's "module language"
(well, most of it -- it doesn't include `functor` or `define-interface`
quite yet). It's actually a pretty small change, mostly just reshuffling
things in expand and capturing the macro environment at the right time.

One thing to note is that this module includes `import` and its
variants, which are already part of the "empty" environment. So, in a
sense, including these forms in this module is redundant, but it's also
harmless and doing so simplifies the implementation. It's also arguably
more correct this way, since importing chicken.module will shadow any
alternative version of `import` that's been imported or defined, which
is what we want, I think.

Cheers,

Evan



reply via email to

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