Why-didnt-we-use-python-in-the-browser
williamedwardscoder.tumblr.com
williamedwardscoder.tumblr.com
If you're looking for a clean syntax, try Coffescript, limit yourself to javascript's "good parts" and be very careful with your style.
<INPUT name="edit1" size="50">
<SCRIPT type="text/tcl">
proc edit1_changed {} {
if {[edit value] == abc} {
button1 enable 1
} else {
button1 enable 0
}
}
edit1 onChange edit1_changed
</SCRIPT>
We could have had a future where you could choose which language to use in client-side code. The "removal" of @type from HTML 5 strongly suggests that not everybody believes in that future.Maybe initiatives like Dart and NaCL will create an humus that will make the use of other languages acceptable in HTML pages.
One important point I remember is that it would have been Python without the standard library. Which isn't anything special, really. We call it CoffeeScript nowadays.
It was very much the core language and most central of modules that I meant; I've blogged on this before to explain my position
http://williamedwardscoder.tumblr.com/post/18319031919/progr...
Well, there was an attempt to get PerlScript to run in the browser, but the hoops you had to go through to get it made it unattractive compared with JS that got native browser support.