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


When I said inconsistent I was agreeing with walter previously stated that it has a very different meaning. Because between the case and colons there is the double dot previously just used in range's start and 1 past endpoint.

In case range we include the endpoint.

We just now have an extra verbose syntax that would be great for minimizing ambiguity but instead is getting used to minimize inconsistency.

Reply via email to