No we should not support enum types derived from strings
Meta
jared771 at gmail.com
Fri May 7 19:13:47 UTC 2021
On Friday, 7 May 2021 at 18:25:57 UTC, Jacob Carlborg wrote:
> On 2021-05-07 17:24, Andrei Alexandrescu wrote:
>
>> 0. We put a String type in the standard library.
>
> If you're going to make strings a user defined type, how are
> you planning to support things like switch statements with
> strings? It's not currently possible to have switch statements
> with user defined types.
It really, really should be. Pattern matching and destructuring
are two of my most wanted features in D.
More information about the Digitalmars-d
mailing list