Destide to Programmer Humor@lemmy.mlEnglish • 3 months agoLearning Functional Programmingfeddit.ukimagemessage-square23fedilinkarrow-up1278arrow-down112
arrow-up1266arrow-down1imageLearning Functional Programmingfeddit.ukDestide to Programmer Humor@lemmy.mlEnglish • 3 months agomessage-square23fedilink
minus-square@ImplyingImplications@lemmy.calinkfedilink53•3 months agoIn functional programming, everything is an expression (of frustration).
minus-square@tetris11@lemmy.mllinkfedilink7•edit-23 months agoY😄 = (λf.(λ🤬.f(🤬🤬))(λ🤬.f(🤬🤬)))😄 = (λ🤬.😄(🤬🤬))(λ🤬.😄(🤬🤬)) = 😄((λ🤬.😄(🤬🤬))(λ🤬.😄(🤬🤬))) = 😄(Y😄)
minus-square☆ Yσɠƚԋσʂ ☆linkfedilink7•3 months agoHaving worked for nearly two decades in a functional language now, that’s precisely how I feel about the imperative style.
minus-square@luciferofastora@lemmy.ziplinkfedilink6•3 months agoIn imperative style, everything is an instruction (to suffer)
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)
😆