On Nov 19, 10:07 am, Stuart Sierra <[EMAIL PROTECTED]>
wrote:
> Hmm, it seems strange to me that this works at all:
>
> user=> (eval '(list + 1 2 3))
> (# 1 2 3)
> user=> (eval *1)
> 6
>
> Does that mean that functions evaluate to themselves?
>
Sure, they always have (think map). The trick is,
Hmm, it seems strange to me that this works at all:
user=> (eval '(list + 1 2 3))
(# 1 2 3)
user=> (eval *1)
6
Does that mean that functions evaluate to themselves?
-Stuart Sierra
On Nov 19, 9:01 am, "J. McConnell" <[EMAIL PROTECTED]> wrote:
> In writing up tests for clojure.contrib.test-cloj
On Wed, Nov 19, 2008 at 10:01 AM, Rich Hickey <[EMAIL PROTECTED]> wrote:
> On Nov 19, 9:01 am, "J. McConnell" <[EMAIL PROTECTED]> wrote:
>>
>> (eval (eval '(list + 1 2 3)))
>>
>> should I be testing to
>> ensure that the above form produces 6? My suspicion is yes, but I
>> wanted to check anyhow.
On Nov 19, 9:01 am, "J. McConnell" <[EMAIL PROTECTED]> wrote:
> In writing up tests for clojure.contrib.test-clojure that cover the
> Evaluation page of clojure.org, I came across the fact that the
> following threw a CompilerException due to a
> "java.lang.ClassNotFoundException: clojure._PLUS_
In writing up tests for clojure.contrib.test-clojure that cover the
Evaluation page of clojure.org, I came across the fact that the
following threw a CompilerException due to a
"java.lang.ClassNotFoundException: clojure._PLUS___224":
(eval (eval '(list + 1 2 3)))
After the AOT changes, this no l