Editions Ideas
IchorDev
zxinsworld at gmail.com
Sun Jan 11 06:47:42 UTC 2026
On Friday, 12 December 2025 at 23:05:27 UTC, Walter Bright wrote:
> Now that Editions have been implemented (thanks Atila, Dennis,
> and Rikki) it's time to solicit D features to be dropped from
> the next Edition of D.
One big thing I'd love would be for us to stop requiring a
`break` at the end of each `case`; instead a case should default
to breaking at the end, which is what you want 99% of the time.
We already require an explicit `goto case` for fall-through, and
give an error otherwise, so this won't break existing code.
Switch-case statements with short cases are so much nicer to read
without all the redundant `break`s everywhere:
```d
int x = 1;
switch(x){
case 0:
writeln("hi");
case 1:
writeln("bye");
default:
writeln("invalid code!");
}
```
More information about the Digitalmars-d
mailing list