Ask HN: JS++ ? Why not make a new, strongly typed JavaScript ?

https://news.ycombinator.com/item?id=25569734
by alcover • 6 years ago
8 39 6 years ago

Javascript has a nice syntax but needs to be faster and more reliable.

With strong typing JS++ would eliminate many runtime bugs. Without all the crazy implicit conversions, boxing, 'eval', etc... fantastic speeds could be achieved.

Lots of electricity and developper hair could be saved.

JS++ would break backward compatibility but this could be softened by retaining the old syntax as largely as possible. With implicit and explicit typing.

It should be easy/automated to convert js to js++.

Inb4 ActionScript 3 : yes, something like that.

Related Stories

Loading related stories...

Source preview

news.ycombinator.com