Re: Why the same result?
- From: Sam Steingold <sds@xxxxxxx>
- Date: Tue, 26 Dec 2006 01:11:16 -0500
* Ronald <sbyybjnvg@xxxxxxx> [2006-12-26 13:56:29 +0800]:
(cons 1 '2)
(cons 1 2)
What's the semantic of '2 and 2?
'2 means (QUOTE 2), i.e., "do not evaluate 2".
2 means evaluate 2. 2 is self-evaluating, it evaluates to itself, so it
is functionally identical to '2.
the difference is stylistic.
http://www.lisp.org/HyperSpec/Body/sec_3-1-2-1-3.html
http://www.lisp.org/HyperSpec/Body/glo_s.html#self-evaluating_object
--
Sam Steingold (http://sds.podval.org/) on Fedora Core release 6 (Zod)
http://palestinefacts.org http://pmw.org.il http://openvotingconsortium.org
http://mideasttruth.com http://ffii.org http://israelunderattack.slide.com
The world is coming to an end. Please log off.
.
- References:
- Why the same result?
- From: Ronald
- Why the same result?
- Prev by Date: Re: Why the same result?
- Next by Date: Re: Any different? '(1 2) (list 1 2)
- Previous by thread: Re: Why the same result?
- Index(es):