4 ms·
Why doesn't Javascript have a standard library? As in, why has one never been made and shipped with the browser?
by Bellend 4y ago
Why doesn't Javascript have a standard library? As in, why has one never been made and shipped with the browser?
- unsafecast 4y agoOh, they ship stuff akin to one, but that's the web APIs, not a “standard” library. As in it's not really standard.
- krapp 4y agoJavascript has a standard library. What Javascript doesn't have is a robust kitchen-sink library akin to other more complex general purpose programming languages, because Javascript was designed to be used in the context of a browser to script webpages, and its actual standard library reflects that. Unsurprisingly, because we've apparently decided Javascript needs to replace all existing languages in all current and future forms of application and system development, its actual standard library is no longer sufficient for many peoples' requirements. But they would rather claim the language "has no standard library" in order to justify the insane complexity of the JS ecosystem than admit that perhaps it just isn't the right tool for every job.