Yeah, I know you wouldn't make such a dreadful recommendation without prompting. I just want to make sure *he* knows that this is considered a little smelly: Clojure gives you the power to do stuff like this, and it's appropriate to use it sometimes, but you should be careful - it's hard for a reason.
On Nov 8, 12:32 pm, Laurent PETIT <laurent.pe...@gmail.com> wrote: > 2010/11/8 Alan <a...@malloys.org> > > > Yes, those are the two choices. Ken's suggestion is the cleanest, and > > you definitely should do that in cases where it's not burdensome. > > Here, where it's a macro for private testing, and you are certain not > > to forget that it's magically binding session for you, then go ahead > > and use Laurent's suggestion to create bindings. > > Ay, it was not a suggestion, just a specific answer to the specific > question :-) > > > > > On Nov 8, 11:38 am, Miki <miki.teb...@gmail.com> wrote: > > > >> that is, use ~'session instead of just session. > > > > What you really want in this case is a binding. Try this: > > > > ... > > > > The added parameter just before the body specifies a name to bind the > > > > session object to; this name can then be used in the body. > > > > This is good a well, but I prefer to dark magic suggested by Laurent :) > > > -- > > 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<clojure%2bunsubscr...@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 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