News for hackers. Stuff that matters.
Re:Backward Compatibility, Go 1.21, and Go 2 by pcwalton on Monday August 14, 2023 @04:06PM (#37126137)
You can sort of add new keywords backwards-compatibly using a trick called "contextual keywords": you require that they be placed in a syntactic position in which no identifier could legally go, and you maintain them as legal identifiers for compatibility. C++ used this trick to introduce "final" and "override" by moving them before the opening "{".

There are no comments on this comment yet.