Re:Type Polymorphic Functions in TypeScript
by galaxyLogic on Wednesday March 16, 2022 @04:55AM
(#30696645)
Those look clumsy but you would only use something like that when in fact you define a similar but not the same operation for Strings and Integers. And then the argument-type-suffix would look more natural. For instance:
And then it might make more sense to define classes Box and Cat and say:
[ Parent
| on HN ]
There are no comments on this comment yet.