Hacker News new | ask | show | jobs
by indexerror 3001 days ago
This is the approach that Kotlin takes (albeit with boxed primitive types). Float, Integer, Long - all are subtypes of Number.