guile-reader-devel
[Top][All Lists]
Advanced

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

Re: [guile-reader-devel] Guile-Bash reader extensions


From: Dmitry Bogatov
Subject: Re: [guile-reader-devel] Guile-Bash reader extensions
Date: Sun, 7 Jun 2015 22:51:09 +0300
User-agent: Mutt/1.5.23.1-rc1 (2014-03-12)

* Ludovic Courtès <address@hidden> [2015-06-07 17:21:11+0200]
> Dmitry Bogatov <address@hidden> skribis:
> 
> >> OK.  If it’s optional, that’s probably more reasonable.
> >
> > It is all great, but is it reasonable for you to specify order of TR
> > application?
> 
> The thing is, it’s not a problem or ordering.  It’s just that only one
> TR is supposed to claim a given character.
> 
> Looking at the code, it’s not actually clear which one wins anyway,
> because there are two cases: the ‘eightbit_char_to_tr_map’ mapping, and
> the other case (see ‘scm_call_reader’.)  I think we cannot really
> document an ordering without exposing too many implementation details
> and without limiting future changes.

Okay, what about providing means to create symbol readers?
I mean provide procedure (make-symbol-token-reader
first-char-predicate). This way it would be possible to 
replace default one with TR, that does not accept $symbols.

-- 
Best regards, Dmitry Bogatov <address@hidden>,
Free Software supporter, esperantisto and netiquette guardian.
GPG: 54B7F00D

Attachment: pgpznB1sZc1rT.pgp
Description: PGP signature


reply via email to

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