July 28, 2007 proposal: remove case keyword | ||||
---|---|---|---|---|
| ||||
Hi, simple question; do we need to write "case" inside a switch statement? Is it needed for parsing? To me it seems to be superfluous and could be removed or at least made optional. Opinions? |
July 28, 2007 Re: proposal: remove case keyword | ||||
---|---|---|---|---|
| ||||
Posted in reply to mandel | mandel wrote:
> Hi,
>
> simple question; do we need to write "case"
> inside a switch statement? Is it needed for parsing?
> To me it seems to be superfluous
> and could be removed or at least made optional.
>
> Opinions?
>
What is your proposed alternate syntax for case statements. You can't replace case A: with A: because then it'd look like a line label.
|
Copyright © 1999-2021 by the D Language Foundation