Javascript becoming more Pythonic?
http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7
Javascript is picking up Iterators and Generators (with the yield keyword). And array comprehensions! Does this look familiar?
var ten_squares = [i * i for (i in range(0, 10))];
I wish browsers would simply open it up to allow:
<script type="text/python" src="mypython.py" />
Most graphical toolkits have APIs for many languages, why not the browser?
But I like seeing that Javascript is seemingly becoming more Pythonic.
About this entry
Date Posted:
August 17th 2006 at 1:08:00 PM
Tagged:
python
Previous Entry:
Apple releases Python based calendar server
Next Entry:
Pygmalion - Python Interface to Ma.gnolia
Comments
blog comments powered by Disqus