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@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@common-lisp.net
http://lists.common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel