News for hackers. Stuff that matters.
Re:Some Functional Programmers Are Arrogant by eli_gottlieb on Wednesday July 08, 2015 @11:11AM (#9852037)
I disagree. I've programmed in plenty of languages with mutable state and found myself desperately wishing for the power of lambdas, function combinators, comprehensions, and other higher-order constructs from functional programming. I'd really much rather have `map f xs` than `for(x : xs) result.add(f(x));`.
Re:Some Functional Programmers Are Arrogant by lostcolony on Wednesday July 08, 2015 @11:20AM (#9852108)
I'm not saying that the ideas that came out of FP don't have beneficial use even in the imperative world, but that they are -necessary- in FP, because you've given up the imperative approaches.
Re:Some Functional Programmers Are Arrogant by pron on Wednesday July 08, 2015 @06:13PM (#9854955)
Mutable state and what we call FP aren't at all mutually exclusive. In fact, most languages which we call functional are imperative (i.e. they're imperative-functional). One of the first languages I used was Scheme which had plenty of mutable state as well as higher-order functions etc. Today, most OO languages have all those as well, and the mother-of-all-OOP, Smalltalk, had them all before the name "functional" even became fashionable.
Re:Some Functional Programmers Are Arrogant by toast0 on Wednesday July 08, 2015 @11:37AM (#9852255)
Most 'non-fuctional' languages have function pointers too, it just might be less idiomatic.