News for hackers. Stuff that matters.
Re:Code that is valid in both PHP and Java, and produces the... by ygra on Thursday September 01, 2016 @04:29AM (#12403755)
Most languages only tend to allow them in string literals, or identifiers. Java is fairly unique in that it has a pre-processor that replaces those throughout the source code before actually compiling. Which means that a lot of benign-looking source code can have fairly surprising behaviour, such as exhibited in the polyglot where

    //\u000Afoo
actually cancels the line comment.

There are no comments on this comment yet.