Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

$ php -a

php > use strict;

PHP Fatal error: You seem to be trying to use a different language... in php shell code on line 1



There are some similar gems to be found in Python:

    >>> from __future__ import braces
      File "<stdin>", line 1
    SyntaxError: not a chance


Also try doing `import antigravity` from the Python repl ;)


Okay, I have to admit, that is pretty amusing. :)


That made my day, thanks


Oh my! That deserves another HN post in itself! <3



Thanks. I had tried it in 5.3 and only got the boring "The use statement with non-compound name 'strict' has no effect" error: http://3v4l.org/WY1Vs




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: