Re: re-using comma for read-time evaluation

Yann LeCun <[email protected]> Mon, 20 Oct 2008 19:21:12 -0400
Newsgroups gmane.lisp.lush.devel
Message-ID <[email protected]>
> The macro-character @ allows evaluation of expressions
> at read-time and, afaik, is mostly used when globally
> defined constants occur in code to be compiled.

Actually "@@" is used for read-time evaluation. a single "@" 
is used to access constants, but it's evaluated at run time
(or at macro-expansion time in compiled code).

It's also used for idx0 literals, as in (setq x [@ 3]),
but that's OK. 

> I would like to use the @-character for something else
> but still think we need a means for read-time evaluation.
> How about re-using the comma character for this? I.e., a
> comma occuring outside a backquoted expression would have
> have the effect @ currently has. Also, I would define it
> in sysenv, so no need to libload libc/constants anymore.
>
> Any objections or thoughts?

One problem is that this would preclude the use of 
constants within backquote expressions. Admitedly, that's
rare, but it would necessitate an embarassing and convoluted
explanation in the documentation.

Another question is: what do you want to use @ for?

  -- Yann



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/