3 ms·
http://www.reddit.com/r/IAmA/comments/we565/im_an_engineer_for_facebook_and_am_helping_build/c5cjvw9 http://www.reddit.com/r/IAmA/comments/we565/im_an_engineer_
by zalew 14y ago
http://www.reddit.com/r/IAmA/comments/we565/im_an_engineer_for_facebook_and_am_helping_build/c5cjvw9 http://www.reddit.com/r/IAmA/comments/we565/im_an_engineer_f...
now that we've done that we can change the language (we've added a ton of stuff like yield, type hints for primitives, new scoping rules, native HTML elements as real classes etc.) and we're building our own VM and JIT for it. so it's only php kind of.
[...]
b) generally php has only two scopes - function scope and global scope. you can get into trouble with this since something that looks like it should be out of scope is, surprise, still the same variable later. we made it have real scope, like in most other languages