-
-
Notifications
You must be signed in to change notification settings - Fork 916
Closed
Labels
discussionThe approach has not yet been decidedThe approach has not yet been decidedhelp wantedContributions encouragedContributions encouraged
Description
Support creation of type wrappers that function like custom types of a single field, require explicit boxing and unboxing, and at runtime all boxing is erased so there is no runtime overhead.
i.e. Cents wraps an Int. At runtime it is just an Int, no record wrapper.
This is called a newtype in Haskell.
What should the syntax be?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
discussionThe approach has not yet been decidedThe approach has not yet been decidedhelp wantedContributions encouragedContributions encouraged