Skip to main content

Questions tagged [backwards-compatibility]

For questions about adding new features without breaking legacy code.

21 votes
14 answers
4k views

Preserving backwards compatibility when adding new keywords

Inspired by Why do keywords have to be reserved words? Suppose that you're the BDFL of a programming language. Version 1 of the language becomes decently popular. A few years later, you decide to ...
dan04's user avatar
  • 1,969
10 votes
7 answers
4k views

Why do keywords have to be reserved words?

In many languages, the authors are hesitant to add more keywords, because doing so would break any existing code that happens to use those keywords as identifiers. However, they could do what C is ...
CPlus's user avatar
  • 8,793