On Monday 06 October 2008 06:07, hotcore wrote:
> Hi,
>
> I was playing around with data structures and found that I couldn't
> type:
>    (conj  #{aap noot mies} 'wim)
> which results in:
>    java.lang.Exception: Unable to resolve symbol: mies in this
> context
>
> Instead I have to type:
>    (conj  '#{aap noot mies} 'wim)
> or:
>    (conj  (set '(aap noot mies)) 'wim)
>
> I wonder why the quote is needed. Normally the quote is only used to
> prevent the first item of a list being interpreted as a (special)
> operator / function; but that's not the case here. Or is it?

Quote prevents evaluation of the thing it's applied to, whether that 
thing is atomic or structured. This is true throughoutthe world of Lisp 
(-like) languages.


> TIA,
>    Arie


Randall Schulz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to