On Dec 30, 11:08 pm, falcon <[email protected]> wrote: > Impressive, source file and line numbers are already included! > I need to better understand reader macro (or where ever # comes from).
You actually need to know two things regarding this issue. In function-definitions, the meta-data is actually assigned to the var referring to the function, not the function itself. For example, if you have a (defn some-fun [x] nil), this creates a var named some-fun that is assigned a function and its meta-data. Now, if you would use a plain (meta some-fun), you'd be referring to meta-data of the thing that the var some-fun is holding (the function itself, which has no meta-data assigned). The #' reader macro is the Clojure way of saying "I mean to the var itself, not the thing the var points to". I hope this explanation is not too confusing. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
