4 ms·
why do you prefer `print` to be a statement The best quip I've seen about this is: Python 3 broke "hello, world". I just tried, and the "hello, world" pro
by PhantomGremlin 11y ago
why do you prefer `print` to be a statement
The best quip I've seen about this is:
Python 3 broke "hello, world".
I just tried, and the "hello, world" program from K&R still compiles and runs.
The article claimed that Guido started Python back in 1989. Wiki tells me that Python 3 was released in 2008. So, if after nearly 20 years of existence, you break the quintessential program of your (or rather any) computer language, then, ipso facto, you've just abandoned your current language and switched to a new one.
Others have mentioned that the print statement could have been retained, while also allowing a function. I would have preferred that. Not "the Python way" of having one way to do something, but there's also backward compatibility to consider.