3 ms·
Pony, amusingly, has both structural and nominal typing. https://tutorial.ponylang.io/types/traits-and-interfaces.html https://tutorial.ponylang.io/types/traits
by bajsejohannes 5y ago
Pony, amusingly, has both structural and nominal typing. https://tutorial.ponylang.io/types/traits-and-interfaces.html https://tutorial.ponylang.io/types/traits-and-interfaces.htm...
- Someone 5y agoSo has COBOL, sort-of. A regular MOVE is sort-of structural. It moves field i of the source to field i of the destination. Source and destination need not be of the same type, though. MOVE CORRESPONDING is nominal. It moves field Foo of the source to field Foo of the destination (leaving fields that do not have corresponding items alone) In both cases, data may be converted, for example from alphabetic to alphanumeric.