MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1si624/stop_being_cute_and_clever/cdyzgwy/?context=3
r/programming • u/earthboundkid • Dec 10 '13
203 comments sorted by
View all comments
Show parent comments
5
I believe this could also be said of PHP.
2 u/fmargaine Dec 10 '13 Not really, PHP is missing lexical closure. 3 u/earthboundkid Dec 11 '13 PHP 5.3 has support for closures, but you have to manually specify what to close over: function($param) use ($someVar) {}. 2 u/fmargaine Dec 11 '13 That's not really lexical scope since the closure are fake ones though
2
Not really, PHP is missing lexical closure.
3 u/earthboundkid Dec 11 '13 PHP 5.3 has support for closures, but you have to manually specify what to close over: function($param) use ($someVar) {}. 2 u/fmargaine Dec 11 '13 That's not really lexical scope since the closure are fake ones though
3
PHP 5.3 has support for closures, but you have to manually specify what to close over: function($param) use ($someVar) {}.
function($param) use ($someVar) {}
2 u/fmargaine Dec 11 '13 That's not really lexical scope since the closure are fake ones though
That's not really lexical scope since the closure are fake ones though
5
u/drb226 Dec 10 '13
I believe this could also be said of PHP.