Daniel Keep escribió:
Andrei Alexandrescu wrote:
I swear if I didn't know anything about the feature and saw the syntax
"case a: .. case b:" I'd know exactly what it does in a millisecond. Why
would the syntax seem inconsistent to new D users? First of all,
inconsistent with what? And how would you treat the issue differently?
Andrei
I think something that might help is if you started using the syntax
like this:
case a:
..
case b:
blah
Now it's clear that it represents a sequence of case labels where all
but the first and last have been elided VERSUS representing a case label
where the label is a range.
That's nice!
I'll make Descent format code like that.
And NO, you won't be able to change that, and it will format it when you
are typing, and you won't be able to change it's form even if you wanted.
Nah, just kidding.