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