Aijan@programming.dev to Programming@programming.dev · 1 year agoAvoiding if-else Hell: The Functional Stylelackofimagination.orgexternal-linkmessage-square33linkfedilinkarrow-up195arrow-down18
arrow-up187arrow-down1external-linkAvoiding if-else Hell: The Functional Stylelackofimagination.orgAijan@programming.dev to Programming@programming.dev · 1 year agomessage-square33linkfedilink
minus-squareZexks@lemmy.worldlinkfedilinkarrow-up1arrow-down1·1 year 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·1 year 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.