Challenge: Is it possible to write some code which compiles with both javac and scalac, but to materially different output?
-
-
Replying to @propensive
@propensive I would guess the simplest route to that would exploit the different semantics for nesting of classes and packages.2 replies 0 retweets 0 likes -
Replying to @milessabin
@milessabin@propensive Scala also supports nested block comments, right? Could that be exploited to write Java in a Scala comment?1 reply 0 retweets 0 likes
Replying to @tixxit
@tixxit Yes, that would do it, for example you could define an extra class which only javac sees. /cc @milessabin
7:19 AM - 3 Oct 2013
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.