Re: clojurescript interop problems

2011-08-01 Thread Arthur Edelstein
On Aug 1, 12:45 pm, Arthur Edelstein wrote: > > Wasn't Rich trying to come up with a solution which could be retrofitted > > into Clojure ? > > I was trying to see how to avoid having to change anything in Clojure > proper. In the strategy I'm humbly suggesting, the syntax from Clojure > could w

Re: clojurescript interop problems

2011-08-01 Thread Arthur Edelstein
> Wasn't Rich trying to come up with a solution which could be retrofitted > into Clojure ? I was trying to see how to avoid having to change anything in Clojure proper. In the strategy I'm humbly suggesting, the syntax from Clojure could work as-is. Just use same the dot notation (as in Clojure,

Re: clojurescript interop problems

2011-08-01 Thread Laurent PETIT
2011/8/1 Arthur Edelstein > > > > One option is (. target :slot), possibly with the not-so-great > (.:slot > > > > target) as well. > > > > > Why not simply (target :slot) and (:slot target) as one means of > > > > (:slot target) would do what, when facing an object which implements the > > Assoc

Re: clojurescript interop problems

2011-08-01 Thread Arthur Edelstein
> > > One option is (. target :slot), possibly with the not-so-great (.:slot > > > target) as well. > > > Why not simply (target :slot) and (:slot target) as one means of > > (:slot target) would do what, when facing an object which implements the > Associative interface ? Here's what I was trying

Re: clojurescript interop problems

2011-08-01 Thread Laurent PETIT
2011/8/1 Arthur Edelstein > > One option is (. target :slot), possibly with the not-so-great (.:slot > > target) as well. > > Why not simply (target :slot) and (:slot target) as one means of > (:slot target) would do what, when facing an object which implements the Associative interface ? > ac

Re: clojurescript interop problems

2011-08-01 Thread Arthur Edelstein
> One option is (. target :slot), possibly with the not-so-great (.:slot   > target) as well. Why not simply (target :slot) and (:slot target) as one means of accessing field values. Then you can still have clojure's traditional (.x target) execute when x is a function object and return x's value

Re: clojurescript interop problems

2011-08-01 Thread Rich Hickey
On Jul 31, 2011, at 11:00 PM, Jack Moffitt wrote: I'm having some trouble attempting to use interop with ClojureScript. I'm trying to translate examples from the Closure book into ClojureScript, and I keep getting stuck on various things. 1) When using goog.testing, it appears that I can't acc

clojurescript interop problems

2011-07-31 Thread Jack Moffitt
I'm having some trouble attempting to use interop with ClojureScript. I'm trying to translate examples from the Closure book into ClojureScript, and I keep getting stuck on various things. 1) When using goog.testing, it appears that I can't access goog.testing.TestRunner and goog.testing.TestCase