[parenscript-devel] DEFINE-PS-SYMBOL-MACRO

Daniel Gackle danielgackle at gmail.com
Sat Jan 19 18:44:17 UTC 2013

Symbol macros just replace a symbol with some expression.
That's obviously too simple a mechanism to implement {}
object literal notation, which as you note would require
extending the reader. It's an idea that's been tossed around
from time to time but no one has done it yet.

On Sat, Jan 19, 2013 at 11:33 AM, David Sargeant <david at dsargeant.com>wrote:

> What does (DEFINE-PS-SYMBOL-MACRO symbol expansion) do?  I found the
> following in non-cl.lisp, which got me thinking.
> (define-ps-symbol-macro {} (create))
> Is there some way to extend the reader so that you could do {:name "David"
> :age 34} instead of (create :name "David" :age 34)?
> David
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://lists.common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/parenscript-devel/attachments/20130119/dbd57b83/attachment.html>

More information about the parenscript-devel mailing list