2011/1/18 Ken Wesson <kwess...@gmail.com> > On Tue, Jan 18, 2011 at 1:07 PM, Stuart Sierra > <the.stuart.sie...@gmail.com> wrote: > > You're not really aliasing the Vars, you're creating new Vars and copying > > the root values from the originals. > > This leads to subtle bugs when the original Vars are dynamically rebound > or > > redefined. That's why Compojure dropped `immigrate`. > > With 1.3, one could recreate a limited 'immigrate' that only imported > the non-dynamically-bindable Vars from the target namespace. This > wouldn't cause subtle bugs, only obvious ones if a wanted Var was > dynamic and thus didn't get imported. >
No, because in 1.3 it will still (hopefully!) be possible to change the root value of vars, be they dynamically rebindable or not. > > The other solution to this is for Rich to add to core a facility for > actually aliasing Vars themselves. > > -- > 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