3 ms·
The most common looping construct I see in clojure is the for statement Which isn't quite the free for all it is in traditional languages You have to be very
by slifin 4y ago
The most common looping construct I see in clojure is the for statement
Which isn't quite the free for all it is in traditional languages
You have to be very conscious and coding against the grain to use it to bang on values in place
- nerdponx 4y agoThis is a general design principle that I appreciate about the Lisp family of languages in general. You can write highly imperative code that mutates things in-place, but it's a little harder to do and it's something you do only when you really need to do it. Whereas the default idioms are functional, and functional design is the path of least resistance. Perl is morally the opposite of functional programming in many ways, but I actually think this design is a great embodiment of the "make easy things easy, make hard things possible" ethos of Larry Wall.