2 ms·
Typescript and Dart have union types that work this way.
by duped 3y ago
Typescript and Dart have union types that work this way.
- Expurple 3y agoAlso, Python with type annotations. But it's not a very fair comparison, since objects in Python/TS are all heap-allocated, introspectable and contain rutnime type information. Rust doesn't have any of that by default