DIP1044---"Enum Type Inference"---Formal Assessment

zjh fqbqrr at 163.com
Tue Apr 25 06:49:21 UTC 2023


On Tuesday, 25 April 2023 at 06:41:04 UTC, zjh wrote:

> Is it okay to use a new keyword `enumswitch` that is equivalent 
> to `with final switch`?


If there were an `official restriction` that could simplify `long 
keywords`, that would be great,like:

```d
alias keyword enumswitch=with final switch;
```
Multiple `keywords/@property` can also be simplified (`pure/@ 
nogc/@ safe/public/...`), but it is best to only allow `official 
simplification`, otherwise it will mess up the grammar.



More information about the Digitalmars-d-announce mailing list