cljs / api

ClojureScript API parser
http://cljs.github.io/api/
MIT License
193 stars 23 forks source link

Update uuid-literal.md #147

Closed ghost closed 8 years ago

ghost commented 8 years ago

Should this be cljs code instead of clj ?

shaunlebron commented 8 years ago

Thanks, this is confusing but the UUID literal is calculated at compile-time. Compile-time stuff happens in Clojure since the compiler is a Clojure application, so we are showing the :clj version of the code.

But since ClojureScript can compile itself now (the bootstrapped version), we can also show :cljs version of the code, which is the version that will run inside an online REPL for example.

You've reminded me that I should include both, so thanks 👍 .

Tracking here: https://github.com/cljsinfo/cljs-api-docs/issues/148