redpill me on functional programming
>redpill
it produces estrogen in the fluoride
>>60256446
so it allows me to be a trap programmer?
>>60256432
It's the programmatic jew
>>60256432
ged off the snibbedy snabber :-DDDDDDdd
>>60256446
DELET THIS
>>60256466
brainlet trap programmer
>>60256432
auto foo = [=](){...}; //capture by value
auto bar = [&](){...}; //capture by reference
There, you know everything about functional programming.
>>60256432
Using a map/reduce here and there is aesthetic as fuck. No more though.
its like normal programming but with functions
>>60256432
not imperative so its gay lulz
>>60256432
all programming has function so it all functional whats so special lol
>redpill me
>>60261185
Stop shitposting seth
>>60256432
It has its strenths and weaknesses.
It can be great for data analytics, it gives you less code with less bugs for the same functionality, it can be (almost) as fast as low level imperative code.
Yes it can have side effects, you just have to be explicit about them which forces you to be careful and makes you a better programmer, GUI programming can be harder because most GUI frameworks are OOP-oriented.
Ideally suited for webstuff as it is trivial to parallelize.
Not so well suited for super-low-latency like vidya
>>60256432
so convince you it's shit?
>>60258312
>capture by reference
nothing functional in that
>>60256432
>redpill
gb2youtube comments kid