Here is a thread with some of our observations.
https://forums.aws.amazon.com/thread.jspa?threadID=261421&ts...
HN user
Here is a thread with some of our observations.
https://forums.aws.amazon.com/thread.jspa?threadID=261421&ts...
Not sure what your statement means.
just awesome
interesting, for those of us who have been using apc for years.
ok i see your point. i conflated the terms function and closure in this case.
after thinking about it for a while, I was misrepresenting what block scope actually was and removed those references in the post.
author here.
<?php $a = 1; /* global scope */
function test() { echo $a }
test();
in javascript, $a would be 1 but in PHP it is undefined and won't produce output,
thanks for the help
i've also run into this, usually through double event binding
well, functions close over scope no matter what you call them.
author here, it wasn't about hiding private variables. i was demonstrating using closures to avoid global namespace collisions which i think is generally a big problem for beginners.
thanks for reading
or both for next level mode!
all the greats get criticized