2 ms·
I just looked at pg. 6 of K&R (I had the 2nd edition handy). There's a program there, short enough to reproduce here in full: #include <stdio.h> main(
by PhantomGremlin 11y ago
I just looked at pg. 6 of K&R (I had the 2nd edition handy). There's a program there, short enough to reproduce here in full:
#include <stdio.h>
main()
{
printf("hello, world\n");
}
I keyed in the program and typed
cc hello.c
I then typed
a.out
and I got the output
hello, world
That worked in 1978 and it works in 2015.
But, surprise, surprise, surprise, Python 3 broke "hello, world", consequently Python 3 broke 99+% of existing Python programs.
Ergo, it follows, Python 3 is a new language. Similar to the previous, but different enough to be annoying.
And, in the case of print statement --> print function, gratuitously annoying. Oh, sure, there's probably a PEP justifying this, but still, some things are best left alone.