This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-10
Channels
- # beginners (61)
- # boot (264)
- # cider (125)
- # cljs-dev (3)
- # clojure (118)
- # clojure-gamedev (3)
- # clojure-greece (1)
- # clojure-italy (1)
- # clojure-nl (2)
- # clojure-poland (3)
- # clojure-russia (38)
- # clojure-spain (2)
- # clojure-spec (17)
- # clojure-taiwan (1)
- # clojure-uk (42)
- # clojurescript (118)
- # clojutre (5)
- # cursive (24)
- # datomic (22)
- # emacs (3)
- # events (2)
- # figwheel (19)
- # funcool (1)
- # jobs-discuss (224)
- # jobs-rus (1)
- # klipse (14)
- # luminus (1)
- # lumo (49)
- # off-topic (51)
- # om (34)
- # pedestal (1)
- # perun (1)
- # planck (93)
- # powderkeg (1)
- # re-frame (15)
- # ring (4)
- # rum (9)
- # slack-help (3)
- # spacemacs (2)
- # specter (13)
- # uncomplicate (1)
- # unrepl (22)
- # untangled (10)
- # yada (36)
@pesterhazy @richiardiandrea thatโs what I meant by an evented reader https://gist.github.com/cgrand/d99afba8ce7ae9a13931184a58bbffc8 (not complete yet)
https://cljs.github.io/api/cljs.core/aset these docs. Also conversations with @anmonteiro (who can probably point at the correct source)
yeah dnolen doesn't like aget/aset used for JS objects
@thheller using brackets makes the closure compiler not minify the properties, but not minifying is often exactly what you want
I think the point is more that aget/aset exists in clojure and operates on arrays, and the fact that it works for objects is an implementation detail you don't want to rely on
I agree goog.object/set is the way to go
I didn't know that there's an interaction with the closure type system
fun fact: goog.object is automatically required so you should be able to use it without the require clause
I hate using the long name ๐ ... also always require everything you use ... will only lead to issues if you dont
yes I guess you're right
oh I wish that gobj/get and gobj/set were part of cljs.core
but that ship has sailed ๐