mhuebert / maria

A ClojureScript coding environment for beginners.

Home Page:https://maria.cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?

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.