Today's Scala puzzler: Without checking, what is the type and value of x? val x = - 128.toByte // note the whitespace ... and why?
-
-
-
Replying to @propensive
@propensive@d6 It's not even a corner case: - (10).toByte... :/1 reply 0 retweets 0 likes -
Replying to @pedrofurla
@pedrofurla @d6 I expected +128: Int. -128 is unique in being the only byte value which overflows on negation...
6:57 AM - 19 Nov 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.