Re:Wisp: a homoiconic JS dialect with Clojure syntax, s-expr...
by grayrest on Friday May 24, 2013 @07:11AM
(#5762119)
I'd expect `(:bar foo)` to desugar to `foo["bar"]()` since the keyword is being used as a function. Property access in clojurescript uses the ugly `(.-bar foo)` syntax.
Re:Wisp: a homoiconic JS dialect with Clojure syntax, s-expr...
by piranha on Friday May 24, 2013 @09:17AM
(#5762484)
No, to get foo["bar"]() in CLJS you write ((:bar foo)). :bar in this case is a function, which returns a value by a key ":bar" from "foo", it's not a property.
Ok. That sucks. So pretty much anyone already a bit serious about Clojure wont be enticed by this then.
Edit: From the page:
That seems pretty close to what's expected though, doesn't it?