Parametric Subtyping? #51025
Labels
duplicate
Indicates similar issues or pull requests
feature
Indicates new feature / enhancement requests
types and dispatch
Types, subtyping and method dispatch
I'm not sure if parametric subtyping would be the right term, but the pattern I'm interested in is this:
The motivation being that many Unitful objects can't deal with functions that have
Real
restrictions, because units have to subtypeNumber
instead ofReal
. How difficult would it be to support this?The text was updated successfully, but these errors were encountered: