WTF Java? Why Not Overload == for Java.lang.Long?
stackoverflow.com
stackoverflow.com
256 is 256 # True
(2**50) is (2**50) # False
albeit without Java's fear of operator overloading and the counterintuitiveness it causes.code:
> (250).class #=> Fixnum > (250) == (250) #=> true > (2100).class #=> Bignum > (2100) == (2100) #=> true
250.object_id == 250.object_id # true
(2**70).object_id == (2**70).object_id # false