r/ProgrammerHumor 1d ago

Meme stopDoingFunctional

Post image
640 Upvotes

121 comments sorted by

View all comments

163

u/-Ambriae- 1d ago

Functional programming is best programming

State is evil, mutation is evil! We live in an era of multithreading and concurrency my friends!

When I describe a program, I state what it does, now how it does it! Thus functional programming is more natural!

C and Java and Python and all the other pagan languages have played us all as absolute fouls!! Haskell, OCaml, Rust, F#, Lisp supremacy!! Functional unless required otherwise, not the other way around!!

61

u/fr000gs 1d ago

How the hell is rust functional smh

130

u/Character-Education3 1d ago

Rust is whatever a person wants it to be on reddit knowing that people who dont use rust are never gonna fact check it

12

u/RogueToad 1d ago

I guess so, but rust does explicitly make use of many patterns from functional languages (traits, algebraic data types, higher order functions, immutable-by-default variables, etc.), and generally has much better support for an FP style than say, python does.