TrentonZero on Nostr: I don't know which language this is, but most have "break" to prematurely terminate a ...
I don't know which language this is, but most have "break" to prematurely terminate a loop. Java even allows break to jump to a label (just like GOTO.)
>From: (zerosequioso) at 08/19/22 21:39:10 on wss://relay.zerosequioso.com
>---------------
>I was mostly joking, but got the urge when I had something that I wanted to happen at the end of every iteration of a loop, but also wanted to sometimes end the iteration early. Easier to GOTO instead of paste the code into two places.
>From: (zerosequioso) at 08/19/22 21:39:10 on wss://relay.zerosequioso.com
>---------------
>I was mostly joking, but got the urge when I had something that I wanted to happen at the end of every iteration of a loop, but also wanted to sometimes end the iteration early. Easier to GOTO instead of paste the code into two places.