enum behaivor. another rehash of the topic
deadalnix
deadalnix at gmail.com
Sun Dec 15 01:38:26 PST 2013
On Sunday, 15 December 2013 at 08:29:59 UTC, monarch_dodra wrote:
> On Sunday, 15 December 2013 at 01:52:01 UTC, bearophile wrote:
>> D enums have some faults...
>
> I've been in enough large scale C++ projects to enjoy D's
> verbose approach. Sure, C++ is convenient and works 99% of the
> time. But all you need is for some retard to create a Global
> enum containing things like the words "Yes, No, True, False,
> Red, Black, White", and then he's ruined it for *everyone* on
> the project.
Resulting in people giving name like TestT1, TestT2 as enum
values in C++. As a result, you end up with the same verbosity as
in D, without the possibility of using 'with'.
More information about the Digitalmars-d
mailing list