continue in labeled switch

Nick Treleaven nick at geany.org
Sat Jul 5 10:19:51 UTC 2025


On Saturday, 5 July 2025 at 10:18:28 UTC, Nick Treleaven wrote:
> Using `continue` for this seems like unnecessary keyword 
> meaning overloading, given that AIUI `continue;` still refers 
> to loop statement iteration, and a labelled switch lowers to a 
> while loop(!):
>
>>  Semantically, this is equivalent to the following loop:
>
> https://ziglang.org/documentation/master/#toc-Switching-with-Enum-Literals

Sorry, wrong link:
https://ziglang.org/documentation/master/#Labeled-switch


More information about the dip.ideas mailing list