https://issues.dlang.org/show_bug.cgi?id=8622

--- Comment #6 from Nick Treleaven <n...@geany.org> ---
An alternate syntax which supports `break` without a label is to extend switch:

switch {
  auto x = foo();
  if (x == bar) break;
  auto y = x.baz();
  if (!y) break;
  y.writeln;
}

Here the switch condition defaults to true, and `default:` is implied.

--

Reply via email to