JPDev@programming.dev to Programmer Humor@programming.dev • 10 months agoifn'timagemessage-square23 fedilinkarrow-up1277
arrow-up1277imageifn'tJPDev@programming.dev to Programmer Humor@programming.dev • 10 months agomessage-square23 Commentsfedilink
minus-squareTrailblazing Braille Taser@lemmy.dbzer0.comhexbear74·10 months agoI propose a new, more threatening kind of control flow. do { /* something */ } or else { /* you don't want to find out */ } linkfedilink
minus-squareMesa@programming.devhexbear4·10 months agoThe better try-catch. More intuitive if you ask me. linkfedilink
minus-squarejadelord@discuss.tchncs.dehexbear3·10 months agoIt exists, kind of. Python has this construct for item in iterable: ... else: ... which always puzzles me, since it depends on a break statement execution. I always have to look it up when the else block is executed. linkfedilink
minus-squareOpenStars@startrek.websitehexbear3·10 months agoYou just made me a offer I can't refuse. I go now to sleep with the fishes... *removed externally hosted image* linkfedilink
I propose a new, more threatening kind of control flow.
do { /* something */ } or else { /* you don't want to find out */ }
It_would_be_a_shame_if(condition)
The better try-catch. More intuitive if you ask me.
It exists, kind of. Python has this construct
for item in iterable: ... else: ...
which always puzzles me, since it depends on a break statement execution. I always have to look it up when the else block is executed.
You just made me a offer I can't refuse. I go now to sleep with the fishes...
*removed externally hosted image*