Hacker News new | ask | show | jobs
by JetSpiegel 3143 days ago
You can use Javascript, the main engines will do that kind of magical "fixing" like adding missing semicolons and hoist variable definitions upwards in functions. It's even transparent. It's an hot mess.

What you request in the last paragraph is a Junior Developer to do the grunt work of implementing a spec.

1 comments

I'm not sure why this has been down voted, but what you are describing as "magical" were a direct consequence of the "lazy" or "lackluster" language implementation. Semicolons are optional, and variable scope is not strictly lexical. This can be seen easily by implementing a javascript subset, which is an interesting excercise. Specifically, the part where you build symbol tables and do symbol resolution. These are also some of the reasons why Javascript is derided by many.