Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't doc functions in Math #187

Open
daveliepmann opened this issue Mar 5, 2018 · 6 comments
Open

Can't doc functions in Math #187

daveliepmann opened this issue Mar 5, 2018 · 6 comments

Comments

@daveliepmann
Copy link
Collaborator

Issue:

(doc Math/sin) returns

Could not resolve the symbol Math/sin. Maybe it has not been defined?

@mhuebert
Copy link
Owner

mhuebert commented Mar 5, 2018 via email

@daveliepmann
Copy link
Collaborator Author

MDN, which I generally prefer, is CC-BY-SA licensed: https://developer.mozilla.org/en-US/docs/MDN/About#Copyrights_and_licenses

@daveliepmann
Copy link
Collaborator Author

We should make sure to override our usual clojuredocs link with a link to https://cljs.github.io/api/syntax/Math-namespace.

@jackrusher
Copy link
Collaborator

Would we want to provide non "special namespaced" versions of the common functions to make the experience more uniform for learners?

@mhuebert
Copy link
Owner

mhuebert commented Mar 6, 2018 via email

@daveliepmann
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants