[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] Re: #505: permit user-defined read-syntax to restart
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] Re: #505: permit user-defined read-syntax to restart the reader |
Date: |
Tue, 22 Feb 2011 21:56:56 -0000 |
#505: permit user-defined read-syntax to restart the reader
-----------------------------+----------------------------------------------
Reporter: zbigniew | Owner: zbigniew
Type: enhancement | Status: new
Priority: minor | Milestone: 4.7.0
Component: core libraries | Version: 4.6.x
Resolution: | Keywords: don't fear the reader
-----------------------------+----------------------------------------------
Comment(by zbigniew):
Final comment, I hope.
The 0-values solution assumes the reader {{{(readrec)}}} will be reinvoked
in tail-position. However, many of the existing read-syntax definitions
in the reader perform a non-tail call to {{{(readrec)}}}, for example:
{{{quote quasiquote #$ #` #+}}} and even {{{#;}}}. Are these recursive
calls equivalent to {{{(read p)}}}? If so, users can just call that. I
assume it is so, and that the direct call to {{{readrec}}} is just an
optimization there. But if not, the functionality should be available to
users.
--
Ticket URL: <http://bugs.call-cc.org/ticket/505#comment:5>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.