> Actually, it does.

Ah, that explains the UnsupportedOperationException :)

> user=> (instance? clojure.lang.IMeta (fn []))
> true
>
> What it doesn't support is changing the metadata after
> creation:
>
> user=> (with-meta (fn []) {:foo "bar"})
> java.lang.UnsupportedOperationException (NO_SOURCE_FILE:0)
>
> The reasons for this have to do with difficulties involved
> in cloning a closure as would be necessary.

Gotcha.

Thanks for the pointer! Perhaps I'll look into defining metafn or  
something, make my life simpler. That would certainly enable  
homoiconic anonymous functions...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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