Interesting rant about Scala's issues

Walter Bright newshound2 at digitalmars.com
Thu Apr 3 21:26:43 PDT 2014


On 4/3/2014 7:19 PM, bearophile wrote:
> I have asked for fully
> typesafe enums in D, but in several years I think Walter has never answered, nor
> he has explained why D has chosen such intermediate point. I presume this choice
> is based on practical reasons, but I don't know exactly what they are (perhaps
> to minimize the number of casts).

Because every cast breaks the type system. A type system that requires too many 
casts for normal things is NOT a type safe system.

I have explained this on numerous occasions.



More information about the Digitalmars-d-announce mailing list