No we should not support enum types derived from strings

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed May 12 13:15:07 UTC 2021


On 5/12/21 6:36 AM, Jonathan M Davis wrote:
> Having isSomeString accept types that implicitly converted to string would
> be a disaster.

Sadly that's exactly what StringTypeOf does: https://run.dlang.io/is/8xqPKr

We should eliminate all uses of StringTypeOf from phobos.


More information about the Digitalmars-d mailing list