News for hackers. Stuff that matters.

somebody1234

Re:What’s so great about functional programming anyway? on Monday November 21, 2022 @11:02PM (#33701689)
there is zero desperation for extreme terseness in ocaml.

some very obvious examples:

- many, if not most, functions have sensible names instead of abnormally terse ones

- it's possible to make named parameters mandatory, and many do that - e.g. the base library

Re:What’s so great about functional programming anyway? on Monday November 21, 2022 @11:00PM (#33701671)
even funnier when you realize that doesn't even need to be curried so it also works in c#:

    someEnumerable.Select(doSomething)
to be fair, i guess doSomething was supposed to be an actual function body instead of a helper function from somewhere else