This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-09-01
Channels
- # admin-announcements (11)
- # announcements (1)
- # beginners (1)
- # boot (36)
- # cider (8)
- # cljs-dev (13)
- # clojure (65)
- # clojure-berlin (18)
- # clojure-russia (54)
- # clojurescript (137)
- # code-reviews (3)
- # datomic (30)
- # emacs (9)
- # events (13)
- # hoplon (36)
- # jobs (1)
- # ldnclj (4)
- # melbourne (15)
- # off-topic (2)
- # om (4)
- # re-frame (5)
- # reagent (25)
- # sydney (3)
- # testing (1)
@dnolen: wondering if we could get rid of the ^boolean
in (when ^boolean goog.DEBUG …)
— is that in the same area as the recent type additions?
if so I might read up on those commits and see if I get an idea
(maybe this would be easier to do for defines emitted via goog-define
than pre-existing ones)
@martinklepsch: just make sure you type hint the var - should work. If it doesn’t there's probably a simple bug around boolean inference.
ok sweet, will give it a spin
@dnolen: is there documentation about what type annotations are available? do they map 100% from clojure?
(sorry could have asked that in #C03S1L9DN as well)
@martinklepsch: not really because the only one that matters is boolean
Didn’t get it working immediately, logged a ticket: http://dev.clojure.org/jira/browse/CLJS-1439
@martinklepsch: thanks
In general it would be nice to have similar annotations for the already defined constants like goog.DEBUG
although I'm not sure how/if that's possible.
@martinklepsch: those should probably just be hard coded, not really worth any more effort