From: Tamas Papp
Subject: Re: designing a Lisp-like language
Date: 
Message-ID: <87k5qntu27.fsf@pu100877.student.princeton.edu>
···@zedat.fu-berlin.de (Stefan Ram) writes:

>   When the symbol »n« has been assigned the value of »5«,
>   however, I can not write:
>
>       »The value is (n).«
>
>   because, with the semantics above, this would evaluate
>   »n« /as a function/.
>
>   One would need to insert an »eval« or so:
>
>       »The value is (eval n).«
>
>   But this would not more complicated.

Use identity, as in (identity n).  You can bind it to a shorter name,
eg id.

Tamas
From: Rob Warnock
Subject: Re: designing a Lisp-like language
Date: 
Message-ID: <lfmdnQY945y-fW3bnZ2dnUVZ_u7inZ2d@speakeasy.net>
Tamas Papp  <······@gmail.com> wrote:
+---------------
| ···@zedat.fu-berlin.de (Stefan Ram) writes:
| >   When the symbol »n« has been assigned the value of
| >   »5«, however, I can not write:
| >       »The value is (n).«
| >   because, with the semantics above, this would evaluate
| >   »n« /as a function/.
| >   One would need to insert an »eval« or so:
| >       »The value is (eval n).«
| >   But this would not more complicated.
| 
| Use identity, as in (identity n).  You can bind it to a shorter name,
| eg id.
+---------------

IMHO the name you want to use is VALUES, with a single arg.
Unlike EVAL, it will handle lexical variables. 

[IDENTITY will work too, but who knows? Some day you just might
need real multiple values...]


-Rob

-----
Rob Warnock			<····@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607