4 ms·
> What you do mean by making you use objects under the hood? im referring to, at runtime, literally _every_ data structure you use in Clojure is an object.
by holtalanm 6y ago
> What you do mean by making you use objects under the hood?
im referring to, at runtime, literally _every_ data structure you use in Clojure is an object.
- lbj 6y agoThat doesn't make Clojure any less functional. No matter which language you use, eventually it'll compile to machinecode and thats imperative by nature. Your code however, can be whatever it wants to be. In certain scenarios, the object boxing does come with a high pricetag in terms of performance, but there are always ways around it and usually only a few functions need tweaking. I will concede however, that those few functions typically end up losing their elegance.
- fulafel 6y agoYou ar going to have to stick to FP theory and stand back from computers if semantically invisible mutability under the hood disturbs you a lot.