This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: Reader option to permit brackets as parentheses
- To: guile@cygnus.com
- Subject: Re: Reader option to permit brackets as parentheses
- From: Christian Lynbech <chl@tbit.dk>
- Date: 01 Jul 1999 10:50:24 +0200
- References: <qrrr9mu4tw7.fsf@elwha.cs.washington.edu> <3779AC8E.A5A1BA79@ozemail.com.au> <qrraeth3c92.fsf@elwha.cs.washington.edu> <377AC053.F3E9A1BB@ozemail.com.au> <qrrzp1h2fvx.fsf@elwha.cs.washington.edu> <199907010401.VAA21885@arathorn> <qrroghx2eoe.fsf@elwha.cs.washington.edu>
IMHO, the guile reader is far too stupid as it is, so how about the
following compromise: we extend the system with reader macros instead.
For instance, we could have a reader option 'reader-dispatch-character-alist'
(matching characters with functions) that would enable the reader to
call out to a user defined function when encountering such a
character.
This way Greg could have his fancy parentheses, plus we could get all
sorts of additional bonuses such as CL's #+.
This would not conflict with future standards as such, because if
someone wants to enable [ and ] to work as ( and ), it would be his
own personal decision.
---------------------------+--------------------------------------------------
Christian Lynbech | Telebit Communications A/S
Fax: +45 8628 8186 | Fabrikvej 11, DK-8260 Viby J
Phone: +45 8628 8177 + 28 | email: chl@tbit.dk --- URL: http://www.tbit.dk
---------------------------+--------------------------------------------------
Hit the philistines three times over the head with the Elisp reference manual.
- petonic@hal.com (Michael A. Petonic)