News for hackers. Stuff that matters.
Re:JEP 286: Local-Variable Type Inference by ygra on Thursday March 10, 2016 @04:16PM (#11262410)
C# shows pretty compellingly that adding features does not have to break existing code. For example, you can use every keyword added after 1.0 as identifier, too.
Re:JEP 286: Local-Variable Type Inference by SideburnsOfDoom on Thursday March 10, 2016 @04:27PM (#11262498)
But it can make things more complex too. e.g. I recently learned that the main reason that asynchronous C# methods have to be declared "async" is so that the compiler knows that in the method body, "await" is a keyword. Without this backward compatibility requirement, it could be inferred from the return type + the presence of 1 or more "await" keywords.