[Haskell-cafe] I read somewhere that for 90% of a wide class of computing problems, you only need 10% of the source code in Haskell, that you would in an imperative language.

Deniz Dogan deniz.a.m.dogan at gmail.com
Wed Sep 30 04:26:34 EDT 2009

2009/9/30 Andrew Coppin <andrewcoppin at btinternet.com>:
> (Mr C++ argues that homo sapiens fundamentally think in an imperative way,
> and therefore functional programming in general will never be popular.

Sounds more like Mr C++ fundamentally thinks in an imperative way
because that's what he is used to.

I recently started working with C# and struggled for way too long with
for/foreach loops to do things that in Haskell could be expressed
using only folding, mapping and filtering. When I realised that those
ideas actually exist in System.Linq I suddenly started liking the
language a bit more.

txtCommaSeparatedNames.Text.Split(',').Select(x => x.Trim()).Where(x
=> x.Length > 0).Select(x => Convert.ToInt32(x)).ToList();

Ah, the joy of FP.

Deniz Dogan

More information about the Haskell-Cafe mailing list