Interesting rant about Scala's issues

Walter Bright newshound2 at digitalmars.com
Fri Apr 4 12:59:22 PDT 2014


On 4/4/2014 11:47 AM, bearophile wrote:
> Also, there is a ugly name clashing between enum field names and the enum
> properties. The solution is to group them into a single namespace (like "meta"),
> and then forbid an enum member with the name of the namespace.
>
> https://d.puremagic.com/issues/show_bug.cgi?id=4997

Actually, that was intentional, which is why the issue is marked as 
"enhancement". The builtin properties are override-able.


> Unfortunately overall the design of D enums has more holes than swiss cheese.

Enums are not meant to be rigidly typed.


 > This is why in a recent post I said to Andrei that perhaps there are still
 > several little breaking changes to do to D, and they need priority over additive
 > enhancements.

I understand your concerns, but I don't share your opinion that they need 
fixing. Their behaviors were deliberately designed, and in my experience work 
out nicely.


More information about the Digitalmars-d-announce mailing list