4 ms·
I don't really mind the small standard library with small modules approach, but JS is the worst kind of language to use that model. It's just too dynamic and wi
by saosebastiao 10y ago
I don't really mind the small standard library with small modules approach, but JS is the worst kind of language to use that model. It's just too dynamic and with too many gotchas. You can monkey patch anything, you can mix optional arguments with required arguments, you can pretty much do anything you want with someone else's code. And the structure of package management systems like NPM and the resulting culture only exacerbate the crappiness of it all. And JS library authors take full advantage of this.
If you want the small stdlib with small module approach, you need a language and runtime system with some better static guarantees.