|
|
|
|
|
by le-mark
3139 days ago
|
|
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. |
|