what is the #. syntax for ?

Discussion of Common Lisp
Post Reply
sinnatagg
Posts: 29
Joined: Tue Apr 21, 2009 3:04 am

what is the #. syntax for ?

Post by sinnatagg » Sun May 10, 2009 11:16 am

This is from the the clsql documentation http://www.lispworks.com/documentation/ ... -w-349.htm:

Code: Select all

#.(locally-enable-sql-reader-syntax)
What is the #. sign for ? Some sort of evaluation related macro ?


-andré

findinglisp
Posts: 447
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX
Contact:

Re: what is the #. syntax for ?

Post by findinglisp » Mon May 11, 2009 8:48 am

#. evaluates the next form immediately as it is read (in the reader). The reader returns the result of the evaluation instead of the form itself. It's useful when a form can't be strictly constant, because it's environmentally dependent, for instance, but yet you want it constant after it's read.
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/

Post Reply