[Bese-devel] Re: Reader macro

Maciek Pasternacki maciekp at japhy.fnord.org
Mon Mar 20 23:31:56 UTC 2006


On Pungenday, Discord 5, 3172 YOLD, Levente Mészáros wrote:

> There is also a reader macro on #< which allows to emit xml with
> yaclml without predefining the tags.
>
> #<(tag :attr 0 #<(tag2 :attr2 "val2") (iter (for a from 0 to 3) #<(tag3 :id a)))

As Hyperspec says, #< macro is meant by CL to represent un-readable
values in form #<foo>, so this macro breaks Lisp.

,----[ http://www.lispworks.com/documentation/HyperSpec/Body/02_dht.htm ]
| 2.4.8.20 Sharpsign Less-Than-Sign
| 
| #< is not valid reader syntax. The Lisp reader will signal an error
| of type reader-error on encountering #<. This syntax is typically
| used in the printed representation of objects that cannot be read
| back in.
`----

-- 
__    Maciek Pasternacki <maciekp at japhy.fnord.org> [ http://japhy.fnord.org/ ]
`| _   |_\  / { ...so I talked about conscience, and I talked about pain,
,|{-}|}| }\/ and he looked out of window, and it started to rain, and
\/   |____/ I thought, maybe - I've already gone crazy... }     ( Fish )  -><-




More information about the bese-devel mailing list