Yes thank you Rich. I had the suspicion that my expectations had some
contradictions hidden in there.

I would be very interested in hearing your opinion about using dynamic
vars. I'm primarily interested in using them for avoiding passing
around long and unintuitive argument lists.

eg:
(defn my-print [planet country city str]
  (println str("we printed " str "at " city ", " country ", "
planet)))

I would much rather do:
(defn my-print [str]
  (println str("we printed " str "at " *city* ", " *country* ", "
*planet*)))

which seems much cleaner, except that when I make closures I have to
give careful thought as to whether I want to capture the var or not.
Is this a programming practice you would consider? or avoid?
  -Patrick

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