Challenge: Is it possible to write some code which compiles with both javac and scalac, but to materially different output?
@milessabin Ah, good thinking! I understand the classes, but Java only gives us one unambiguous way to write packages, doesn't it?
-
-
@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. -
@propensive Did that "work" for you? ;-) - Show replies
New conversation -
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.