Can't `doc` functions in `Math`
daveliepmann opened this issue · comments
Issue:
(doc Math/sin)
returns
Could not resolve the symbol
Math/sin
. Maybe it has not been defined?
MDN, which I generally prefer, is CC-BY-SA licensed: https://developer.mozilla.org/en-US/docs/MDN/About#Copyrights_and_licenses
We should make sure to override our usual clojuredocs link with a link to https://cljs.github.io/api/syntax/Math-namespace.
Would we want to provide non "special namespaced" versions of the common functions to make the experience more uniform for learners?
I'm torn. Math functions are almost a good time to introduce the concepts of namespaces and JavaScript...but they feel too soon. So yeah, I agree we should pretend to be a var, and in the source for those specials we point to CLJS.github.io and MDN.