News for hackers. Stuff that matters.
Re:Try Clojure by eviks on Wednesday May 22, 2024 @03:33PM (#40445277)
I'd take the verbosity over having to count the operators from the start of the line to figure out which one are used at the end of the line "1.5 2"
Re:Try Clojure by skydhash on Wednesday May 22, 2024 @03:55PM (#40445572)
The parenthesis highlight in any decent editor. So it always very obvious which operators apply to the operands.
Re:Try Clojure by eviks on Thursday May 23, 2024 @01:56AM (#40450965)
This reduces the friction, but doesn't eliminate the needles back and forth. Breaking context locality is just bad

The threads example in another comment is way better

Re:Try Clojure by skydhash on Thursday May 23, 2024 @12:46PM (#40456956)
There’s no needle back and forth. Everything in parentheses is a complete expression, like a formula. You have the operator (function) and the operands (args). Think of it as add instead of + and multiply instead of *. You get used to it very quicly and then it does not matter.
Re:Try Clojure by eviks on Friday May 24, 2024 @06:08AM (#40464608)
It's not about thinking differently, it's about operator location, you simply don't know with long nested function what operation is performed at end-3 nest unless you look at beg+3