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.
Published at
2022-08-20 02:42:37Event JSON
{
"id": "496a316a26ce01c91bb9eb1e85b400aa10db60e8a6241808f26bee2fe01f8690",
"pubkey": "8098608c9bb2186c7e70f0ed5c0a02f14547a6c1ccd89e411806bc15fd98581d",
"created_at": 1660963357,
"kind": 1,
"tags": [
[
"e",
"933cea3b2609d1ca5b0ee639aafc9cc8815c77549442f4ca4a24630b037632e5",
"",
"root"
],
[
"e",
"07b309069f3d18063e1df0d467367a11a64a3c907eb5378f52ed1858fad8188b",
"",
"reply"
],
[
"p",
"42a0825e980b9f97943d2501d99c3a3859d4e68cd6028c02afe58f96ba661a9d"
],
[
"client",
"more-speech - 202208171549"
]
],
"content": "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.) \n\n\u003eFrom: (zerosequioso) at 08/19/22 21:39:10 on wss://relay.zerosequioso.com\n\u003e---------------\n\u003eI 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.",
"sig": "f7caddf7fcca04251d7a28c05656b1f0189c726ba4aa16d59ab14988f763aa6300a4ee94fc94dcaf170c5285bb4e6949f233f92a32f34674ef07a3a56b6994f8"
}