Neil Jerram <[email protected]> skribis:

> I wonder about possibly having some magic that would automatically
> match certain top-level forms and evaluate them at compile time.  The
> case for this for 'define-reader-ctor' feels quite strong.  For the
> load path case, it feels too hacky to try to recognize patterns like
> (set! %load-path (append %load-path ...))', but perhaps OK if we
> defined an 'add-to-load-path' procedure and applied the magic to that.
>
> What do you think?  Would that be too magical?

Yes, I think so.  :-)

Separation of concerns means that the compiler does not have to know
about SRFI-10 or any other library, but instead just provides
‘eval-when’ as a mechanism to express what we want in such cases.

Thanks,
Ludo’.


Reply via email to