In functional programming, everything is an expression (of frustration).
Y=λf.(λ🤬.f(🤬🤬))(λ🤬.f(🤬🤬))
Y😄 = (λf.(λ🤬.f(🤬🤬))(λ🤬.f(🤬🤬)))😄 = (λ🤬.😄(🤬🤬))(λ🤬.😄(🤬🤬)) = 😄((λ🤬.😄(🤬🤬))(λ🤬.😄(🤬🤬))) = 😄(Y😄)
Having worked for nearly two decades in a functional language now, that’s precisely how I feel about the imperative style.
In imperative style, everything is an instruction (to suffer)
😆
If you are bored of writing Brainfuck in your spare time, try Lambda Calculus instead as an exciting alternative!
Relevant reading: https://justine.lol/lambda/
It would be extremely annoying to be forced to write all my code functionally.
But I find it even more annoying to be forced to write all my code object oriented. Looking at you, python and java.
C++. Do whatever the hell you want, it doesn’t care. Mix paradigms all day long.
People complain about its complexity and the fact that it has everything including the kitchen sink, but that is exactly why I love it. It gives you choice.
C++: You can do everything, but with garbage syntax and ten traps to look out for™
Yes, look out for the leg bombs.
If choice is our metric here, why not C? That way, you have the choice to use your own implementation of OOP
Bro just finds it annoying to write code
Nah, coding is one of the few things I don’t find annoying, so long as the language or toolsets I’m using allow for freedom. What I find annoying is when some talking head says all code should be a certain way, and everybody believes them for some reason.
What I find annoying is when some talking head says all code should be a certain way,
It’s quite useful to have “all code be a certain way” within a language ecosystem. E.g. Haskell requiring all pure functions be actually pure is amazing because you know that any function from any library doesn’t perform some stupid side effect when you call it, and just processes its inputs into an output. Of course, functional programming tools can be useful even outside purely functional languages, but having those important properties be ecosystem-wide makes you feel much more comfortable, and produces much better, safer and more reliable code in the end.
Not sure why you’re saying Python forces everything to be object oriented…?
I’ve been there. It’s great!
But how many burritos is that.
But how many burritos is that.
Lets find out! Count = λB. (B (λx. (x + 1)) 0)
3 its 3 burriotos you’re going to have to pop out and get 8 more for the other commenters