Fork me on GitHub
#clojurescript
<
2021-10-11
>
zhuxun221:10:19

I notice that cljs put parentheses around integers but not floats, was it intentional?

> (.toString (fn [] 3))
"function (){\nreturn (3);\n}"
> (.toString (fn [] 4.2))
"function (){\nreturn 4.2;\n}"

p-himik21:10:11

And the difference is a happenstance, I guess.