4 ms·
While i find this cool,and putting aside the fact that it's a Microsoft specific extension since this is covered in other comments, i really doubt of the utilit
by Raphael_Amiard 16y ago
While i find this cool,and putting aside the fact that it's a Microsoft specific extension since this is covered in other comments, i really doubt of the utility of python as a client side language.
The only advantage i can see is language homogenization between server and client code, if your web app is in python. Python doesn't have a sane syntax for anonymous functions, which i use a lot in event driven code because imho they make the code clearer. That's arguably a small drawback, but the advantages also seems scarce from my perspective.
Of course there are python niceties like list comprehensions, but i would much rather use CoffeeScript if i need a step up in syntax from Javascript, since it has very nice support for anonymous functions, and a whole lot of other things, being designed precisely for this purpose.
What do you guys think ? Why would you like to use python scripts ?
- deleted 16y ago[deleted]
- edanm 16y agoThe simplest answer for me is that I know Python very well, but don't know Javascript (that was more true when I just got started with web programming a few months ago). If I could use Python in the browser, I would: one less thing to learn. Especially since my (server-side) application is written in Python/Django, it makes even more sense. I also consider Python a great language, and am usually happier in it than any other language. It's nicer than Javascript is, at least in my (limited) experience.