Genericize generic types #22
Labels
api
Relates to the API design
core
Describes core required functionality
enhancement
An improvement to existing functionality
minor
Has only a small impact for the majority of users
Rather than introduce different generic traits to represent various proto-typeclasses for converting libraries' types to a lowest-common-denominator representation, with "specific" counterparts for converting back, it might be possible to use just two:
With additional definitions, such as:
we can have given instances such as,
MyInstant is Generalizable across Instants into Long
andMyPath is Specializable across Paths by Text
.Then, we can define general methods:
or,
The text was updated successfully, but these errors were encountered: