cljs-dev

ClojureScript compiler & std lib dev, https://clojurescript.org/community/dev
dnolen 2020-04-27T13:58:50.159700Z

re: allow requires from the global namespace could work for other useful JS targets too, Rhino/Nashorn/Graal.js https://clojure.atlassian.net/browse/CLJS-3233

dnolen 2020-04-27T13:59:04.160100Z

all these environments offer host API access via some global property

dnolen 2020-04-27T14:01:24.162100Z

after auditing some React Native stuff, I think one level for property access for namespaces is too restrictive, being able to access NativeModules needs at least two levels, but likely more https://clojure.atlassian.net/projects/CLJS/issues/CLJS-3235

thheller 2020-04-27T14:05:13.163200Z

why not a . for the second case? then $ has the clear meaning of separating <source>$<export>.<property> vs having two meanings depending in on the place it it used in?

thheller 2020-04-27T14:06:37.163800Z

and $ might actually be used inside variable names too so it removes that clash possibility

dnolen 2020-04-27T14:07:52.164100Z

I like it, updated

👍 4
richiardiandrea 2020-04-27T17:12:52.165600Z

With CLJS-3235 in place would this also mean that "symbols" within objects now appear in the compiler state? If so it would be huge cause we can finally complete them 😄

dnolen 2020-04-27T18:26:17.166400Z

not directly, but the plan is to support externs for the global pattern

👍 1