Project Elvis

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


On Monday, 13 November 2017 at 14:44:55 UTC, Nick Treleaven wrote:
> The commenting out case can be prevented by making ?: an actual 
> operator, so ?/**/: would be an error.

Yes, that sounds reasonable.

> (Also I think it's regressive to argue invalid code becoming 
> valid is a good reason to prevent introducing a feature).

In terms of usability you want to catch typos so you want some 
redundancy, but I don't know whether this is a likely typo.

But in general, it is possible to construct a language where all 
strings are valid programs. That would also mean that all typos 
would go un-noticed in that language.



More information about the Digitalmars-d mailing list