If you take the blue pill you wake up. C++ is the best programming language still. Functional programming isn't a thing and you go back to passing around your objects.
But if you take the red pill you see what is on the other side.
You can write functional code in any programming language.
Many "functional" concepts like first-class functions, closures, map/filter/reduce are not "functional" at all, they exist in many imperative languages.
"Functional programming" as described by this board seems to revolve entirely around avoiding mutability and state, 2 things that are literally unavoidable when running software on a CPU, since your CPU is literally one giant state machine.
And people will go to great lengths to avoid state just to bring it back with self-contained state machines known as "monads" that have absolutely nothing to do with the fringe category theory concept of the same name.
Why did they go to all this trouble?
Because you literally can't have I/O without state, and a programming language with no state will heat up the CPU but produce no useful work.
Functional programming is a meme.
>>60819890
It can be done.
>>60819890
functional concepts were copied from functional languages. Even exceptions were copied from FP.
>>60819993
We innovate whereas they choose to linger behind.
>>60820149
You "innovate" by transforming your languages into functional languages. You're decades late.
>>60820199
>we invented garbage collection
>we invented functions as first class citizens
>we invented immutable datastructures
>now we are mastering multithreaded before you are even close
>and yet we are behind
>>60820238
Everything is false in that post. Everything.
>>60820251
Oh good, so we're not behind.
>>60820348
Ho shit. :)
>>60820448
my precious arguments ruined by contradiction
assembly is the ultimate red pill
>>60819890
>state [...] literally unavoidable when running software on a CPU, since your CPU is literally one giant state machine
yeah, "stateless" systems never are.
>>60820848
I don't argue with liars.
>>60820848
dumb frogposter
Everyone in this thread needs to get off 4chan and get ready for fucking work
>>60819772
Just don't take both the pills.
We had a guy do that once.
Afterwards all he could say was "parentheses" over and over.
>>60820851
this
>>60820851
Forth is a bigger redpill than assembler
>>60820994
>implying anybody in this thread has a job
>>60819772
Write a fully-featured RDBMS, or something else of comparable complexity, in a purely functional language. Then maintain it for a year.
Then I will acknowledge that purely functional languages have practical, real-world uses. Until then, my interest in them is purely academic.
>>60820994
I am I am jeez
>>60820994
>not multi-tasking
>not shitposting from work
>>60821039
Thanks, made me chuckle.
>>60819890
/thread
>>60819916
>>60820149
>>60820238
Dumb frog poster
>>60820974
>>60821926
Dumb "dumb frogposter" poster
>>60819772
>functional programming
>objectively better than x
Not falling for the functional jew.
>>60821940
Dumb "Dumb "dumb frogposter" poster" poster.
>>60823490 (you)
>>60819890
Why is your view so black and white?
Fact is, imperative languages have some of these concepts them because they were inspired by functional concepts, that's just the way it is. E.g. lambda's, streams in Java 8, etc.
Watch this video, it's an interesting take on things by Simon Peyton Jones, one of the key researchers behind Haskell.
https://www.youtube.com/watch?v=iSmkqocn0oQ&gl=BE