> In the original discussion in this list, a couple alternatives similar
> to the following were suggested for property access to remain closer
> to the Clojure situation:
>
> (set! (.:id foo) "my-css-id"))
> (set! (.:fillStyle ctxt) "rgb(255, 150, 0)")
>
> Were those thrown out for being too ugly?
Responding to an earlier point in this thread: Now is the time for breaking
changes. ClojureScript is alpha. Use in production by enterprising folk should
not be discouraged, but at the sa(m|n)e time, I don't believe there have been
any mixed messages regarding whether or not cljs is production-
> Now compare to the proposed change:
> (set! (. foo :id) "my-css-id"))
> (set! (. ctxt :fillStyle) "rgb(255, 150, 0)")
In the original discussion in this list, a couple alternatives similar
to the following were suggested for property access to remain closer
to the Clojure situation:
(set! (.:id
Sorry I didn't copy my perspective over here from clojure-dev as someone
who's been working as a JavaScript dev for the past 6 years
-
The proposed change is not optimal and I think it clashes with the realities
of JavaScript interop.
(.property foo)
Currently gives us a notion of "place",
> Thoughts?
I like it. +1 to it going in sooner rather than later.
jack.
--
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
The ticket http://dev.clojure.org/jira/browse/CLJS-89 and the design
page
http://www.google.com/url?sa=D&q=http://dev.clojure.org/display/design/Unified%2BClojureScript%2Band%2BClojure%2Bfield%2Baccess%2Bsyntax
describe the details of the change in ClojureScript.
I would like to make this change (