Python language hack for C-style programmers [DO NOT USE!] :-)

Chris Angelico rosuav at gmail.com
Fri Mar 28 08:51:13 CET 2014


On Fri, Mar 28, 2014 at 6:46 PM, Peter Otten <__peter__ at web.de> wrote:
> Why would you guess if you can check? Just fire up the interactive
> interpreter^W^W compiler:

Partly because there's a difference between valid C++ and valid input
to the G++ compiler :) Knowing that it works with g++ doesn't tell me
that it's actually valid, and I don't feel like digging into the specs
to find out where you're guaranteed to be allowed to do that. (I could
probably test it with one of the language spec options, but then it
still depends on the exact version of GCC and the exact spec chosen.)

ChrisA



More information about the Python-list mailing list