Steal labelled break and continue from zig?

From: Date: Mon, 27 Feb 2023 22:36:54 +0000
Subject: Steal labelled break and continue from zig?
Groups: php.internals 
Request: Send a blank email to internals+get-119610@lists.php.net to get a copy of this message
Hello, As I was reading https://kristoff.it/blog/zig-multi-sequence-for-loops/ I found a very nice trick which in PHP would be: foo: while ($i--) { if ($ % 2) break foo; } What do you think? Charlie

« previous php.internals (#119610) next »