3 ms·
> require the Python 3 interpreter to be able to interpret Python 2 code as well as Python 3 code Because that would make the interpreter a whole lot more comp
by orf 11y ago
> require the Python 3 interpreter to be able to interpret Python 2 code as well as Python 3 code
Because that would make the interpreter a whole lot more complicated. A lot of technical debt was cleared with the 2-3 transition, adding it back in defeats the point.
C/C++ is different, C++ is a superset of C. That makes things a lot easier.
Edit: Ok, C++ is not a superset, common misconception.
- m3koval 11y agoC++ is not technically a superset of C. Here are a few examples that are valid in C, but not C++: http://stackoverflow.com/a/1201840/111426 http://stackoverflow.com/a/1201840/111426 However, it's close enough that I generally agree with your point.
- hellofunk 11y ago>C/C++ is different, C++ is a superset of C. That makes things a lot easier. This is entirely incorrect, but I'll give you a break since it is a common misconception. C and C++ are truly two different languages. C is not 100% compatible with C++.
- thaumasiotes 11y ago> C++ is a superset of C No it isn't.