Re:Why functional programming matters (1990) [pdf]
by h91wka on Saturday November 09, 2019 @07:27AM
(#21491116)
In imperative languages you don't need Edward Kmett to invent lenses for you.
Re:Why functional programming matters (1990) [pdf]
by tome on Saturday November 09, 2019 @10:59AM
(#21492234)
Firstly, that's a non-sequitur, but secondly, in an imperative language with immutable data structures, yes, you do.
Okay, I'm really hoping there's a good surprise behind this, because I've been an imperative programmer for 10 years and a functional programmer for 5 and I have only rarely seen imperative code that was more concise than equivalent functional code. Faster? Sure. More efficient? I'll buy it. Perhaps even easier to read, especially when you get into point-free style on the functional side. But more concise overall? I find that hard to believe, but I'm genuinely excited now! The ultimate trump here would be APL but that's admittedly an eccentric case.