On Sep 9, 2009, at 1:40 PM, Ray Dillinger wrote:
> On Wed, 2009-09-09 at 18:22 +0200, Peter Bex wrote:
>
>> If a user types "foo"n"baz", that's also parsed as "foo" n "baz".
>> For
>> reasons of symmetry, I propose to keep the behaviour of || the same.
>
> I am not at all sure that this is universally true. But I have
> never tested it, as I would never and have never written code
> without separators between tokens.
>
> Does no implementation insist on separators between tokens?
(length '("foo"n"baz")) -> 3 in any implementation conforming to the
R5RS. (7.1.1 "Tokens which require implicit termination (identifiers,
numbers, characters, and dot) may be terminated by any <delimiter>,
but not necessarily by anything else.")
I strongly agree with the analogy of | to ". The Common Lisp behavior
of |foo|n|bar| -> |fooNbar| (assuming standard readtable case) is
broken. In CL terms, #\| ought to behave as a terminating macro
character.
--
Brian Mastenbrook
[email protected]
http://brian.mastenbrook.net/
_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss