News for hackers. Stuff that matters.
Re:Why functional programming matters (1990) [pdf] by jolux on Friday November 08, 2019 @11:46PM (#21489684)
>Imperative code is also more concise than equivalent functional code.

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.

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.
Re:Why functional programming matters (1990) [pdf] by sullyj3 on Saturday November 09, 2019 @10:28AM (#21492037)
But, this is a problem specific to Haskell and its poor record syntax, not the functional paradigm in general.
Re:Why functional programming matters (1990) [pdf] by jolux on Saturday November 09, 2019 @11:07AM (#21492279)
I...sure? But you could get a lot of help from Phil Wadler and Simon Peyton-Jones!