2 ms·
In a dynamic interpreted language there is no value of having generics over duck typing or omitting types altogether (and you can narrow down by specifying inte
by WesolyKubeczek 3y ago
In a dynamic interpreted language there is no value of having generics over duck typing or omitting types altogether (and you can narrow down by specifying interfaces). Compiled languages generate a version of your function<T> for every T encountered in the codebase.
- usrusr 3y agoFor completeness: other compiled languages elide that T and use the types in angulars only to emit errors during compilation. Also perfectly fine, but certainly not any help in absence of static compilation.