-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-type-systemArea: Type systemArea: Type system
Milestone
Description
Currently, int::abs
has a return type that's the same as its arg type, and writing int::abs(x) as uint
looks very silly. I understand that it's not totally straightforward to write what we really want (basically, we want a type function that relates an int type of a given size to a uint type of a given size, and AFAICT we can't do that), but it would still be good. Maybe there's a clever workaround I'm not seeing...
Metadata
Metadata
Assignees
Labels
A-type-systemArea: Type systemArea: Type system