ceylon/ceylon.language — Issue #11: Introduce Scalar type
Author: gavinking
Created: 2011-11-28 20:27:08+00:00
State: open

Currently `Numeric` is a subtype of both `Comparable` and `Number`. But this isn't very nice for `Complex` numbers. So I propose introducting `Scalar` which mixes in `Numeric`, Comparable`, and `Number`, and has `Float`, `Integer`, and `Natural` as subtypes. Then `Integral` would also be a subtype of `Scalar`. Any objections?