qaz@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years agoWhy use if/else when you can use try/if/catch?lemmy.worldimagemessage-square6fedilinkarrow-up171arrow-down17
arrow-up164arrow-down1imageWhy use if/else when you can use try/if/catch?lemmy.worldqaz@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years agomessage-square6fedilink
minus-squarelowleveldata@programming.devlinkfedilinkEnglisharrow-up14·2 years agoWhy use goto when you can throw exceptions to escape nested for loops?
minus-squarefiah@discuss.tchncs.delinkfedilinkEnglisharrow-up6·2 years agoexceptions are just fancy gotos
minus-squarewvenable@lemmy.calinkfedilinkEnglisharrow-up1·2 years agoExceptions are fancy returns. Everything else is fancy goto, including returns…
Why use goto when you can throw exceptions to escape nested for loops?
exceptions are just fancy gotos
Exceptions are fancy returns. Everything else is fancy goto, including returns…