guile-user
[Top][All Lists]
Advanced

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

Re: cannot compile: srfi-10 define-reader-ctor 'hash '#,(


From: Ludovic Courtès
Subject: Re: cannot compile: srfi-10 define-reader-ctor 'hash '#,(
Date: Sun, 17 Aug 2014 17:08:14 +0200
User-agent: Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux)

Neil Jerram <address@hidden> 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

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