2 ms·
Which is an altogether different discussion: the OP focused on compound types, and not on type "aliases" and their benefits. Most languages and their typing sy
by necovek 2y ago
Which is an altogether different discussion: the OP focused on compound types, and not on type "aliases" and their benefits.
Most languages and their typing systems would still allow adding speed and fuel-left if you only aliases them, so you are likely going to need to sacrifice ergonomics by wrapping them in a compound type instead.