draft proposal for Sum Types for D

Kagamin spam at here.lot
Mon Dec 5 10:33:21 UTC 2022


On Wednesday, 30 November 2022 at 14:33:51 UTC, Quirin Schroll 
wrote:
> I wanted to write something like this in my post, but it really 
> didn’t fit. As for `enum`, can’t semicolon syntax just be 
> added? Can’t we just both allow `enum X { A; B; }` and `enum { 
> A, B }`? (We don’t need to deprecate the comma syntax, it works 
> fine except when it’s a hindrance. It’s not evil.)

This. Now we have doc comments and UDAs attached to enum members, 
it's too much for measly comma syntax.


More information about the Digitalmars-d mailing list