Re:Why I Prefer Functional Programming
by jlg23 on Thursday September 19, 2019 @02:08PM
(#21018861)
As a lisp programmer who never wrote in Haskell the snippet you quoted is crystal clear to me, while with explicit loops I always have to double check, because I am pattern matching the code "ah, a map or reduce was meant" but I still have to double check assignments and the abort condition (off by one, incrementing the wrong index etc).
[ Parent
| on HN ]
Re:Why I Prefer Functional Programming
by ThinkBeat on Thursday September 19, 2019 @03:31PM
(#21019774)
I write Lisp but I have no idea what /x means in the example above for instance.
That's a syntax knowledge problem, not a readability problem. \x -> introduces a lambda function with a parameter x, like (x) => in javascript etc.