3 ms·
>And, if Apple were to switch, why would they pick a language as shitty as Javascript? That seems to be a fairly popular dismissal for a language designed in 1
by wamatt 13y ago
>And, if Apple were to switch, why would they pick a language as shitty as Javascript?
That seems to be a fairly popular dismissal for a language designed in 10 days, and perhaps rightly so. JavaScript probably classifies as mediocre language compared to the wealth of sanely designed choices we have available today.
That said, have you taken a recent look at the next generation of JavaScript aka ES6/Harmony?[1]
- Modules? Yup
- Maps and Sets? You bet.
- Tail call optimizations? Sure
- Classes? Finally!
etc
That's not to suggest that a single iteration will magically fix all of its quirks and shortcomings. However, one possibility could be that Apple picked JS, not on it's checkered history, or the fact that it is popular amongst web developers today, but where it is headed tomorrow and how it could be adopted and adapted.
[1] https://wiki.mozilla.org/ES6_plans* https://wiki.mozilla.org/ES6_plans*