Silly me, thank you for your replies guys! One more question though, what if my-foo had parameters?
Ryan On Sunday, October 27, 2013 6:55:34 PM UTC+2, Luc wrote: > > You are getting my-foo evaluated, remove the parens around it. > > Luc P. > > > > Hello, > > > > I am trying to understanding why is this happening: > > > > > (defn my-foo [] (println "Why do I get printed?")) > > > #'sandbox4724/my-foo > > > > (get {:b 1} :b (my-foo)) > > > Why do I get printed? > > > 1 > > > > > > > > > > Shouldn't (my-foo) only be called in case the key isn't found? Why am I > > seeing the above behavior instead? > > > > Thank you for your time, > > > > Ryan > > > > -- > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to clo...@googlegroups.com<javascript:> > > Note that posts from new members are moderated - please be patient with > your first post. > > To unsubscribe from this group, send email to > > clojure+u...@googlegroups.com <javascript:> > > For more options, visit this group at > > http://groups.google.com/group/clojure?hl=en > > --- > > You received this message because you are subscribed to the Google > Groups "Clojure" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to clojure+u...@googlegroups.com <javascript:>. > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- > Softaddicts<lprefo...@softaddicts.ca <javascript:>> sent by ibisMail from > my ipad! > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.