[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Per-module reader
From: |
Neil Jerram |
Subject: |
Re: [PATCH] Per-module reader |
Date: |
Wed, 12 Oct 2005 00:24:38 +0100 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
> Hi,
>
> Let's not forget this thread (see <address@hidden>), it's soooo
> interesting! Was my message so convincing that you don't know what to
> answer? ;-)
I'll reply separately to some of the details in your other message,
but overall I don't feel convinced that we need to support #:reader as
a core module feature.
If I'm understanding correctly, your argument rests on wanting to
allow people to write a module like this:
(define-module (shell utils)
#:reader shell-reader
#:use-module (shell reader)
#:export (for))
for () {
beg=$1
end=$2
...
}
rather than like this (with the shell code in another file):
(define-module (shell utils)
#:use-module (shell reader)
#:export (for))
(load-using-reader "for.sh" shell-reader)
I admit that in the future something like this _could_ be a key part
of Guile's support for translators, but right now we don't have enough
translation experience to say that this will end up being the right
thing, and on its own merits the benefit of being able to write
foreign code with a Guile module header in the same file seems very
marginal to me.
And to get this marginal benefit we have to add a module option and
some code which will slow down normal operation. Not noticeably
perhaps, but it all adds up.
Finally, wouldn't you be making more headache for yourself (in the
medium term) by relying on #:reader in the core rather than something
like load-using-reader in your library? With #:reader in the core,
your package code would only work with Guile CVS and >=1.7 releases
after a certain date, whereas with load-using-reader your code will
work with 1.6, 1.7/1.8 and probably 1.4 as well.
Sorry to push back so much, but that's my view.
Regards,
Neil
- Re: [PATCH] Per-module reader, Ludovic Courtès, 2005/10/11
- Re: [PATCH] Per-module reader,
Neil Jerram <=
- Re: [PATCH] Per-module reader, Ludovic Courtès, 2005/10/12
- Re: [PATCH] Per-module reader, take #2, Ludovic Courtès, 2005/10/17
- Re: [PATCH] Per-module reader, take #2, Neil Jerram, 2005/10/17
- Re: [PATCH] Per-module reader, take #2, Ludovic Courtès, 2005/10/18
- Re: [PATCH] Per-module reader, take #2, Neil Jerram, 2005/10/19
- Re: [PATCH] Per-module reader, take #2, Kevin Ryde, 2005/10/19
- Re: [PATCH] Per-module reader, take #2, Ludovic Courtès, 2005/10/20
- Re: [PATCH] Per-module reader, take #2, Kevin Ryde, 2005/10/20
- Re: [PATCH] Per-module reader, take #2, Neil Jerram, 2005/10/20
- Re: [PATCH] Per-module reader, take #2, Ludovic Courtès, 2005/10/20