Abstract operator methods for type Number

Good point.

It has me considering what a Number type is in kotlin. and now I’d describe it as: “A number type is a type that can be converted (not perfectly) into an int, double, float, … etc”

I guess it you’d need a number type that can be converted to perfectly from all others to make any sense of it.

Also, here’s the link to more discussion Kotlin Number class mystery - #8 by akurczak

I suspect this thread isn’t the last in the chain either ;D

1 Like