No we should not support enum types derived from strings
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Fri May 7 15:25:30 UTC 2021
On 5/7/21 11:20 AM, Steven Schveighoffer wrote:
> On 5/6/21 11:48 PM, Andrei Alexandrescu wrote:
>> We should remove all that rot from phobos pronto.
>>
>> https://github.com/dlang/phobos/pull/8029
>
> What do you mean "not support"? The language has enums derived from
> strings. Did you mean remove it from the language? That would be a
> severe penalty.
Enums derived from strings should not be supported as strings in the
standard library.
> Did you mean that Phobos routines just should error whenever you use
> enum types derived from strings? That's also a severe penalty.
No it isn't.
More information about the Digitalmars-d
mailing list