Re: ClojureScript – inter-namespace usage

2012-01-10 Thread Shantanu Kumar
On Jan 10, 2:16 am, David Nolen wrote: > binding works just fine in CLJS. That it doesn't work with required "vars" > sounds like a bug. I filed CLJS-121 for this: http://dev.clojure.org/jira/browse/CLJS-121 Shantanu -- You received this message because you are subscribed to the Google Group

Re: ClojureScript – inter-namespace usage

2012-01-09 Thread Praki Prakash
I bind *print-fn* and it seems to work fine in my snapshot of master pulled on 12/14. On Mon, Jan 9, 2012 at 6:16 PM, David Nolen wrote: > binding works just fine in CLJS. That it doesn't work with required "vars" > sounds like a bug. > > On Monday, January 9, 2012, Stuart Sierra > wrote: >> Hi

Re: ClojureScript – inter-namespace usage

2012-01-09 Thread David Nolen
binding works just fine in CLJS. That it doesn't work with required "vars" sounds like a bug. On Monday, January 9, 2012, Stuart Sierra wrote: > Hi Shantanu, > > #1 is a bug. > > #2 is not possible because `import` doesn't exist in ClojureScript: it doesn't differentiate between host classes and

Re: ClojureScript – inter-namespace usage

2012-01-09 Thread Cedric Greevey
On Mon, Jan 9, 2012 at 2:20 PM, Shantanu Kumar wrote: >> #3 seems unlikely to be implemented. ClojureScript doesn't have Vars, and >> it doesn't have threads, so there's not much for `binding` to do. I could >> see `with-redefs` being supported, however. > > Hi Stuart, > > Thanks for the pointers.

Re: ClojureScript – inter-namespace usage

2012-01-09 Thread Shantanu Kumar
> #3 seems unlikely to be implemented. ClojureScript doesn't have Vars, and > it doesn't have threads, so there's not much for `binding` to do. I could > see `with-redefs` being supported, however. Hi Stuart, Thanks for the pointers. So, I am trying to understand what is the canonical way to writ

Re: ClojureScript – inter-namespace usage

2012-01-09 Thread Cedric Greevey
On Mon, Jan 9, 2012 at 1:18 PM, Stuart Sierra wrote: > #3 seems unlikely to be implemented. ClojureScript doesn't have Vars, and it > doesn't have threads, so there's not much for `binding` to do. I could see > `with-redefs` being supported, however. Actually, the lack of threads just simplifies

Re: ClojureScript – inter-namespace usage

2012-01-09 Thread Stuart Sierra
Hi Shantanu, #1 is a bug. #2 is not possible because `import` doesn't exist in ClojureScript: it doesn't differentiate between host classes and ClojureScript code. Protocols and types should be accessible with normal `require` in ClojureScript. #3 seems unlikely to be implemented. ClojureScri