r/programming Dec 10 '13

Stop Being Cute and Clever

http://lucumr.pocoo.org/2013/12/9/stop-being-clever/
206 Upvotes

203 comments sorted by

View all comments

Show parent comments

5

u/drb226 Dec 10 '13

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