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 Ah, good thinking! I understand the classes, but Java only gives us one unambiguous way to write packages, doesn't it?1 reply 0 retweets 0 likes -
Replying to @propensive
@propensive define pkg.Cls and pkg.pkg.Cls, then refer to pkg.Cls from somewhere in pkg. Java will refer to the first, Scala the second.1 reply 0 retweets 1 like -
Replying to @milessabin
@milessabin Just spotted your earlier response - yes, got it! I was only considering isolated file examples before...
7:13 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.