-
-
Couldn't load subscription status.
- Fork 5.7k
Closed as not planned
Labels
mathsMathematical functionsMathematical functionstypes and dispatchTypes, subtyping and method dispatchTypes, subtyping and method dispatch
Description
This will solve a whole bunch of problems.
UInt1is a lot more intuitive thanBoolas a identity element forpromote_type.true + true === 2won't be inconsistent with every other unsigned type; we can haveUInt1(1) + UInt1(1) === UInt1(0)as expected.Boolcan be made non-numeric. (cc @StefanKarpinski)
I think the current system is really not ideal; it's worse than a method pun: it's punning a type for two very different things.
Metadata
Metadata
Assignees
Labels
mathsMathematical functionsMathematical functionstypes and dispatchTypes, subtyping and method dispatchTypes, subtyping and method dispatch