3 ms·
> I don't think the onslaught of new frameworks and transpilers has been due to JavaScript's weaknesses as a language. I whole-heartedly disagree. TypeScript,
by smt88 10y ago
> I don't think the onslaught of new frameworks and transpilers has been due to JavaScript's weaknesses as a language.
I whole-heartedly disagree. TypeScript, Flow, and Babel are all ways to address JavaScript's weaknesses. You could argue Babel is a result of out-dated browsers, of course. But fragmentation of targets is certainly an issue of the language -- earlier versions didn't have to be so poorly designed.
Would we have all these transpilers if we were using a fully-formed, general-purpose language for the web from the start? No. If JS had a type system, there would be no TypeScript, Flow, NativeScript, PureScript, etc. If JS had a sane way to handle parallelism from the beginning, Babel wouldn't be nearly as useful.
Yes, it's true that JavaScript wasn't designed for what it's being used for now. That doesn't mean it's a good language (or ever was).