jeromeetienne / better.js

a better javascript in javascript
http://betterjs.org
MIT License
156 stars 22 forks source link

jsdoced.js #74

Open jeromeetienne opened 10 years ago

jeromeetienne commented 10 years ago
jeromeetienne commented 10 years ago
jeromeetienne commented 10 years ago

possible experimentation

jeromeetienne commented 10 years ago

epiphany

https://twitter.com/jerome_etienne/status/424382161505239041

Javascript+jsdoc have similar syntax expressivity that language like java or dart. So js+jsdoc could be compiled and run as fast as them.

https://twitter.com/jerome_etienne/status/424383104909049856

Js+jsdoc have strong typing, inheritance, private variables and methods, interface, and likely more.

https://twitter.com/jerome_etienne/status/424383965748015104

Js+jsdoc is fully backward compatible to js. What the heck. Let's have a "use jsdoc"; and have the VM take advantage of it when it can.

https://twitter.com/jerome_etienne/status/424384683095633920

If dart VM is much faster than js ones, we could have compilers which compile js+jsdoc to dart. Thus taking advantage of speed of dart VM