As you know, have you read some of my other questions, I am writing a programming language. One of my serious problems is that many languages have backward compatibility issues, and I want to avoid such problems. For one thing, I saw a lot of pain and agony in the Python community over switching to Python 3000 because it breaks backward compatibility. On the other hand, I saw C ++ that started with binding to the C syntax and never recovered; those. C syntax is bad for many C ++ constructs.
My solution is to let programmers add a compiler directive to a file that tells the compiler which version of the language to use when compiling. But my question is: how do other languages deal with this problem? Are there any other solutions that have been tried, and how successful were these solutions?
source
share