Discussion Thread: DIP 1044--Enum Type Inference--Community Review Round 1

RTM riven at baryonides.ru
Wed Nov 23 16:30:56 UTC 2022


On Wednesday, 23 November 2022 at 15:26:46 UTC, ryuukk_ wrote:

> ```D
> switch (action.attack_type) {
>     case MELEE:
>         if (action.weapon_type == .SWORD)
>             (...)
>
>
>         if (action.buff_type == .STR_UP)
>             (...)
>     break;
>
> }
> ```

Inconsistency. Should be with/without dot in either case.




More information about the Digitalmars-d mailing list