Re: Example in Joy of Clojure, 2nd edition (MEAP)

2014-02-16 Thread gianluca torta
as a side note, since we are within the backquote, simply using r (instead of ~'r) would not work since it would incorrectly expand to the fully qualified symbol, e.g. user/r Gianluca On Saturday, February 15, 2014 5:49:57 PM UTC+1, Jan Herich wrote: > > Hello Eric, > > You can rewrite this fun

Re: Example in Joy of Clojure, 2nd edition (MEAP)

2014-02-15 Thread Eric
Hi Jan, OK, I get it, thanks a lot for your quick answer. Eric Le samedi 15 février 2014 17:49:57 UTC+1, Jan Herich a écrit : > Hello Eric, > > You can rewrite this functionality with key# and r# instead of ~'key and > ~'r and it would work just as well, > it's only not necessary to use uni

Re: Example in Joy of Clojure, 2nd edition (MEAP)

2014-02-15 Thread Jan Herich
Hello Eric, You can rewrite this functionality with key# and r# instead of ~'key and ~'r and it would work just as well, it's only not necessary to use unique symbols here, because you are not using them in the function body anyway, so there is no danger of accidental var capture. To be hones