Wouldn't it be reasonable if code like …
def scramble(f: Float) = f scramble(1234567890L) // => 1.23456794E9
… was a compiler error instead of converting our
Long to a
What about …
List(10, 5, 2.5)
If we don't convert
what will be the element type of
AnyValoffers no useful methods!
Useless, but at least we know what went wrong!
List[Int|Double] // with union types ...