Rather D1 then D2

JN 666total at wp.pl
Sat Sep 22 19:41:16 UTC 2018


On Saturday, 22 September 2018 at 19:04:41 UTC, Henrik wrote:
>
> "int safe = 0; // This code would break if "safe" was added as 
> a keyword"
>

I'm not buying this one. The compiler could issue a warning, 
something like "Warning: keyword safe will become a keyword in 
future version, please rename the identifier", then after few 
months remove it.

Some code will break, sure, but it's a mechanical change that 
should be possible to apply by some tool. Also, with proper dub 
package validation, it should be easy to assess how many packages 
actually break if any. It's one thing to break vibe-d or 
diamondmvc, it's other thing to break helloworld-d that wasn't 
updated in seven years.


More information about the Digitalmars-d mailing list