4 ms·
OK, as a litmut test, how would your proposed compromise Python variant deal with the following program print As Python 3, this program does nothing. As
by eru 11y ago
OK, as a litmut test, how would your proposed compromise Python variant deal with the following program
print
As Python 3, this program does nothing. As Python 2 it prints a newline.
I do agree that Python could have adopted the ML/Haskell syntax for calling functions that does away with most parens. But I don't think anyone in Python land would have swallowed that.
- acqq 11y agoIt's clear, in Python 3 that would have to behave as in Python 2 if our goal were to have most of existing Python 2 programs "still working" when people give them to Python 3.