2 ms·
However, in JavaScript-world, where the external types you interact with - from other libraries, from APIs, from the browser itself - are poorly defined, having
by Fellshard 7y ago
However, in JavaScript-world, where the external types you interact with - from other libraries, from APIs, from the browser itself - are poorly defined, having that escape hatch becomes a sanity-saver, does it not? That's where the power comes from: the squishy, fuzzy, less structured edges.
- dpc_pw 7y agoThe parent-parent comment was "I want an escape hatch in the language" and then the argument for it is "someone else used an escape hatch, and now I need an escape hatch". :D
- RobertKerans 7y agoWell, yes, most of the packages available in the JS ecosystem were written in JS. The easiest way to retroactively write typings is to use `any` all over the place.
- yakshaving_jgt 7y ago> having that escape hatch becomes a sanity-saver, does it not? No, it does not. There is no difference between static languages and dynamic languages when parsing data at runtime.