emacs-devel
[Top][All Lists]
Advanced

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

Re: Reader macros


From: David Kastrup
Subject: Re: Reader macros
Date: Fri, 23 Jan 2015 10:33:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Daniel Colascione <address@hidden> writes:

> On 01/22/2015 03:36 PM, Stefan Monnier wrote:
>> Maybe we could introduce a more limited form of reader macros.
>> E.g. allow #<letter><sexp> and make the reader return
>> 
>>    (funcall (cdr (assq <letter> reader-macro-alist)) <sexp>)
>
>
> That's an excellent idea.

Doesn't work well where <letter> is an unmatched delimiter like ( or [.

Also would not work with #r"xxx" raw strings.  I think it makes more
sense (like Guile does it) to make this kind of funcall not with <sexp>
but rather with <port>.  If indeed a sexp is wanted, calling `read' is
trivial.

-- 
David Kastrup



reply via email to

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