On Sep 8, 2014, at 1:19 PM, Gary Trakhman <[email protected]> wrote: > I prefer -> in CLJ and CLJS since it's more flexible, I don't know if there's > an argument against it.
I prefer .. so I don't need a . prefix on each method call in the chain - and
also so it signifies interop more clearly:
(-> e .-target .-checked)
vs
(.. e -target -checked)
> On Mon, Sep 8, 2014 at 4:17 PM, stephanos <[email protected]> wrote:
> I assume it is specific to ClojureScript. Could you also use the '->' macro?
> Which one is more idiomatic?
It's interop syntax, the same as you'd use in Clojure to call a chain of Java
methods on an object, so in that sense it's not specific to ClojureScript.
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
signature.asc
Description: Message signed with OpenPGP using GPGMail
