▲ | samatman 7 months ago | |||||||
I would suggest languages facing the same problem learn from Perl 5's success, rather than the various failures of Python 3. Every† minor point release of Perl 5 creates backward-incompatible changes. These can be opted into individually, or on a per-file basis by simply specifying the version of Perl used. It all works. Differently-versioned Perl code can call each other as much as it likes. There was never any reason why Python 3 needed to be anything other than Python 2 with this at the top of the file:
For various values of `n`. Perhaps when enough time passes, that's just Python now, and you have to copy-paste this into all the legacy code:
That's it. Any language can do this, they just have to decide not to make life hard for everyone.[†] Perhaps not literally every, but it may as well be. | ||||||||
▲ | bluGill 7 months ago | parent [-] | |||||||
There are many options with pros and cons. Python was aware of them. They made what looked like a reasonable decision to take a different paths. On hindsight we know of the problems but you could not predict them with confidence in advance. (some may have predicted it but they would admit to guessing if they are honest) | ||||||||
|