3 ms·
The name of the function is typically the same though, even with structural typing. This doesn’t seem quite like that.
by jolux 7y ago
The name of the function is typically the same though, even with structural typing. This doesn’t seem quite like that.
- int_19h 7y agoIf you mean the name of the function in the interface, it's basically ignored in this pattern, similar to how argument names are ignored. The entire interface definition should be treated as a function type with some redundant metadata.