Hi, 2010/5/5 Meikel Brandmeyer <m...@kotka.de>: > Hi, > > On Wed, May 05, 2010 at 08:24:39AM -0700, Chas Emerick wrote: > >> variety of birds with one stone, and maybe slightly simplify the >> mental model that one needs to have in place to understand namespaces. > > The model is already quite easy, no? Everything is just a sequence > of statements read by Clojure. A ns form does not create a namespace > but declares one. It is only created, if it doesn't exist already. > And from then on this namespace is modified by further statements. > > The question with the new style is: to which filter does f refer to? > > (ns some.name.space) > > (defn f [pred x] (filter pred x)) ; core filter? > > (defn filter [pred x] ...)
I bet on core filter, since compilation will hard link to the fn (for clojure.core) or resolve the symbol into a var, which at compile time will still be the var pointing to core. /me crosses fingers and hopes he finally "got things" :-) -- 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 Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en