Destide to Programmer [email protected]English • 8 months agoLearning Functional Programmingfeddit.ukimagemessage-square22fedilinkarrow-up1263arrow-down111
arrow-up1252arrow-down1imageLearning Functional Programmingfeddit.ukDestide to Programmer [email protected]English • 8 months agomessage-square22fedilink
minus-square@[email protected]linkfedilink50•8 months agoIn functional programming, everything is an expression (of frustration).
minus-square@[email protected]linkfedilink7•edit-28 months agoY😄 = (λf.(λ🤬.f(🤬🤬))(λ🤬.f(🤬🤬)))😄 = (λ🤬.😄(🤬🤬))(λ🤬.😄(🤬🤬)) = 😄((λ🤬.😄(🤬🤬))(λ🤬.😄(🤬🤬))) = 😄(Y😄)
minus-square☆ Yσɠƚԋσʂ ☆linkfedilink8•8 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•8 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)