Project Elvis

Ola Fosheim Grøstad ola.fosheim.grostad+dlang at gmail.com
Mon Nov 6 13:02:43 UTC 2017


On Monday, 6 November 2017 at 10:12:11 UTC, Jonathan M Davis 
wrote:
> All it does is take the expression
>
> x ? x : y
>
> and make it
>
> x ?: y

Yes, that is an issue because it means that typos no longer are 
caught. E.g. if you accidentally comment out or delete the second 
expression.

Which is why I think ?? or some other choice would offer better 
usability.

> The difference is that you think that the feature is worth the 
> cost, not that the folks who don't want to use the feature 
> don't have to pay the cost.

Indeed.



More information about the Digitalmars-d mailing list