Imagine if we could specify JavaScript or TypeScript in the script tag for today’s browsers?
Imagine if we could specify JavaScript or TypeScript in the script tag for today’s browsers?
In the implementations part of the wikipedia page https://en.wikipedia.org/wiki/Active_Scripting#Implementatio... you can see there were a number of available scripting languages for use on IE. For some reason it doesn't mention the ones from ActiveState - the current ActiveState python doesn't seem to be Active Scripting enabled but back when this technology was useful it was - maybe it just provided the python version mentioned on the wikipedia page with some extras though.
on edit: added missing word.
Edit: That said, maybe webassembly is a way forward.
"Vugu: A modern UI library for Go+WebAssembly"
JavaScript really should follow Python’s lead here and allow but ignore type annotations. I believe TC39 already reserved the lexical space for it.