Destide to Programmer [email protected]English • 2 months agoLearning Functional Programmingfeddit.ukimagemessage-square22fedilinkarrow-up1263arrow-down110
arrow-up1253arrow-down1imageLearning Functional Programmingfeddit.ukDestide to Programmer [email protected]English • 2 months agomessage-square22fedilink
minus-square@[email protected]linkfedilink50•2 months agoIn functional programming, everything is an expression (of frustration).
minus-square@[email protected]linkfedilink7•edit-22 months agoY😄 = (λf.(λ🤬.f(🤬🤬))(λ🤬.f(🤬🤬)))😄 = (λ🤬.😄(🤬🤬))(λ🤬.😄(🤬🤬)) = 😄((λ🤬.😄(🤬🤬))(λ🤬.😄(🤬🤬))) = 😄(Y😄)
minus-square☆ Yσɠƚԋσʂ ☆linkfedilink8•2 months agoHaving worked for nearly two decades in a functional language now, that’s precisely how I feel about the imperative style.
minus-square@[email protected]linkfedilink2•2 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)