Hacker News new | ask | show | jobs
by joshuacc 4245 days ago
You might be interested in looking at TypeScript: http://www.typescriptlang.org/

It does something very similar to what you're suggesting, adding in static type information for JavaScript and giving you compiler errors if you mess things up.