ifn'tprogramming.devimage JPDev ( @JPDev@programming.dev ) Programmer Humor@programming.dev • 6 months ago message-square45fedilinkarrow-up1413
arrow-up1413imageifn'tprogramming.dev JPDev ( @JPDev@programming.dev ) Programmer Humor@programming.dev • 6 months ago message-square45fedilink
minus-square Trailblazing Braille Taser ( @0x0@lemmy.dbzer0.com ) linkfedilink124•6 months agoI propose a new, more threatening kind of control flow. do { /* something */ } or else { /* you don't want to find out */ }
minus-square Strawberry ( @Strawberry@lemmy.blahaj.zone ) linkfedilink28•6 months agothis is just a menacing try/catch!
minus-square moody ( @moody@lemmings.world ) linkfedilink13•6 months agoIt_would_be_a_shame_if(condition)
minus-square Mesa ( @Mesa@programming.dev ) linkfedilink5•6 months agoThe better try-catch. More intuitive if you ask me.
minus-square jadelord ( @jadelord@discuss.tchncs.de ) linkfedilink5•6 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.
minus-square OpenStars ( @OpenStars@startrek.website ) linkfedilinkEnglish5•6 months agoYou just made me a offer I can’t refuse. I go now to sleep with the fishes…
minus-square rothaine ( @rothaine@beehaw.org ) linkfedilinkEnglish4•6 months agodo { /* something */ } do hast { /* something */ }
minus-square Trailblazing Braille Taser ( @0x0@lemmy.dbzer0.com ) linkfedilink6•6 months agodo { /* something */ } do hast { /* something */ } do hast mich { /* something */ }
I propose a new, more threatening kind of control flow.
this is just a menacing try/catch!
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
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…