[Top][All Lists]

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

Re: [PATCH] Per-module reader, take #3

From: Marius Vollmer
Subject: Re: [PATCH] Per-module reader, take #3
Date: 20 Nov 2005 02:15:27 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Neil Jerram <address@hidden> writes:

> To be completely concrete about what I mean, here is a version of
> your patch which I prefer (untested except by make check).

Hmm.  Your approach make 'load' configurable so that it can use
different 'read' procedures.  Wouldn't it be more natural to make
'read' configurable to parse different syntaxes?

'load' is only a thin wrapper around 'read' and 'eval' (basically, a
repl without the 'p').  The real meat is in 'read' (syntax) and 'eval'
(semantics).  So, if we want to customize the syntax, I'd say 'read'
is the place to do it.  Then all users of 'read' would automatically
use the new syntax, not only when reading code in 'load'.  (That's one
big point of Lisp, that the data and code syntax are the same.)

However, making the read procedure used by 'load' configurable can't
hurt, I think.

GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405

reply via email to

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