4 ms·
Javascript is dynamically typed though. And Typescript has generics or circumventing the type system with :any to enable reusability.
by the_duke 10y ago
Javascript is dynamically typed though.
And Typescript has generics or circumventing the type system with :any to enable reusability.
- the_gipsy 10y agoExactly my point, dynamically typed means writing less boilerplate. At the cost of safeness and mantainability. TypeScript's any is more for compatibility with js libs though.
- boubiyeah 10y agoYes, in a sane codebase, you (almost) never use <any>. 98% of the time, if you type <any>, you're being lazy.