4 ms·
“Math” here is short for “java.lang.Math” though. Technically that’s interop rather than Clojure per se. /pedantic
by mapgrep 5y ago
“Math” here is short for “java.lang.Math” though. Technically that’s interop rather than Clojure per se.
/pedantic
- Fellshard 5y agoIf you remove the Java SDK from Clojure's foundation, you're losing a lot of its power. The interop is part of that foundation.
- mapgrep 5y agoFor sure, but “Clojure doesn't provide built-in function for exponential operation” is still an objectively true assertion. If your point is that it’s wrong in spirit, I totally agree, and I think this is yet another example of the limits of this “cheat sheet” approach. If you’re coming from another language, the concept of easy, well integrated interop with a host language platform would be fairly foreign, so the importance of an available Java method, and the fact that such methods are frequently used as core parts of the language, would be totally lost on you.
- Fellshard 5y agoThink it might just be quibbling on the nature of 'built-in' at that point.
- mapgrep 5y agoWell yes hence the “/pedantic” tag. I was quibbling with someone who went out of their way to “correct” a true fact. Quibbling with quibbling if you will. Sort of like you’re doing. But hey they started it ;)
- didibus 5y agoI think for Math/ it's a bit more fuzzy, because it doesn't need to be aliased explicitly, it's always available to use as it is automatically imported as Math. And this is then consistent in ClojureScript as well.