3 ms·
The other way to put this question is - Is there sufficient reason/motivation to try to replace Javascript with something else? What does JS lack or what are it
by yalogin 15y ago
The other way to put this question is - Is there sufficient reason/motivation to try to replace Javascript with something else? What does JS lack or what are its limitations?
- tikhonj 15y agoProper tail-calls! Of course, I think neither Python nor Ruby support them either, but one can dream...
- mixmastamyk 15y agoThe lack of keyword default arguments drives me nuts, python just does it so well. Not to mention ===, etc, etc. None of these things are a showstoppers, but rather amount to "death by paper cut" that in my mind that make the language unsatisfying to use.
- danmaz74 15y agoYou can just use CoffeScript for those little problems.
- mixmastamyk 15y agoI've looked at it, and while nifty, makes me worry about leaky abstractions and future support. Now that you mention it if I'm going to do that, why not use the python-to-javascript compiler from pyjamas? ... hmm.
- danmaz74 15y agoThe difference is that CF is very close to javascript and makes it very easy to transition. But of course, if you prefer python, why not :) Talking about future support, as CF is included in Rails 3.1, I guess that it should be guaranteed enough.
- mixmastamyk 15y agoI looked in to it. While technically possible it looks like you'll have to include a script to implement the python-like objects. That's a bit more than I wanted, just to write javascript in python syntax... so I guess it's not very practical.
- xer0 15y ago"Not to mention ===, etc, etc." In that context, I read "etc, etc" as a variant of the "etc" operator.