Following a blog post on building large object graphs I was suggested
with the following solution:
  (def nested-object (-> GrandFather. Father. GrandSon.))

this indeed seems to be correct however fails in even in a simple
example:

user=> (-> String. String.)
java.lang.ClassNotFoundException: String. (NO_SOURCE_FILE:7)

expanding the macros involved seems to reveal the issue:

user=> (macroexpand-1 `(-> String. String.))
(java.lang.String. java.lang.String.)

the "." macro isn't expanded.

Is there a way of applying nested macros?
(iv searched for "applying nested macros" with no results).



--~--~---------~--~----~------------~-------~--~----~
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