[Top][All Lists]

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

Re: [Chicken-hackers] [PATCH] inline-syntax and require-extension-for-sy

From: John Cowan
Subject: Re: [Chicken-hackers] [PATCH] inline-syntax and require-extension-for-syntax
Date: Sun, 12 May 2013 19:46:52 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

Felix scripsit:

> 1) "require-extension-for-syntax"/"use-for-syntax", which does
>    the same as the often occurring idiom
>      (begin-for-syntax (require-library FOO))
>      (import-for-syntax FOO)
>    So this loads an extension and imports it, but at expansion time.

I don't usually commit this sort of remark, but it does occur to me
that if Chicken would just lift the restriction that makes `import` fail
if a module is not loaded, rather than quietly loading it behind the
scenes, it would not be necessary to pile feature upon feature in this
fashion: `import-for-syntax` would do it all.

John Cowan  address@hidden
If I have not seen as far as others, it is because giants were standing
on my shoulders.
        --Hal Abelson

reply via email to

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