Enum literals, good? bad? what do you think?
Mathias LANG
geod24 at gmail.com
Thu Jul 22 05:05:33 UTC 2021
On Thursday, 22 July 2021 at 04:37:43 UTC, Walter Bright wrote:
>
> there isn't much of a clue that `case A` is not `case 3`, which
> matters more and more the larger the program gets.
That's a very good point, I didn't think about local enum when
trying to come up with corner cases. And IMO that's a dealbreaker
for this idea, since local enums for case statements aren't that
rare, at least in the code I've worked with.
More information about the Digitalmars-d
mailing list