Feedback Thread: DIP 1044--Enum Type Inference--Community Review Round 1
IchorDev
zxinsworld at gmail.com
Thu Nov 24 12:43:23 UTC 2022
On Wednesday, 23 November 2022 at 16:11:32 UTC, Daniel N wrote:
> [implicit 'with'] is more efficient from a compiler performance
> perspective as $ could refer to any enum, whereas the implicit
> 'with' only adds one enum.
I thought I should also add that this is completely false. In a
`case` statement, `$member` can only refer to a member of the
type enum type used in the `switch`. If it does not, the compiler
will return an error.
More information about the Digitalmars-d
mailing list