Aijan@programming.dev to Programming@programming.dev · 2 years agoAvoiding if-else Hell: The Functional Stylelackofimagination.orgexternal-linkmessage-square33linkfedilinkarrow-up195arrow-down17
arrow-up188arrow-down1external-linkAvoiding if-else Hell: The Functional Stylelackofimagination.orgAijan@programming.dev to Programming@programming.dev · 2 years agomessage-square33linkfedilink
minus-squareZexks@lemmy.worldlinkfedilinkarrow-up1arrow-down1·2 years agoIf you decompile that code you won’t get lambdas. You get ifs. Because that is how the hardware is build. Ifs/ands/Ors that is what computing is built on. Everything else is flavor.
minus-squareplatypus_plumba@lemmy.worldlinkfedilinkarrow-up1·2 years agoThe title of the post is “how to avoid if-else hell”, not “how to avoid conditionals”. Not sure what’s your point.
If you decompile that code you won’t get lambdas. You get ifs. Because that is how the hardware is build. Ifs/ands/Ors that is what computing is built on. Everything else is flavor.
The title of the post is “how to avoid if-else hell”, not “how to avoid conditionals”. Not sure what’s your point.