Anthony,

It may be disagreeable from your perspective, but I (and many others) find this to be a very useful construct. And I hate to invoke "other languages" argument, but there is a reason that something like this is available in many modern languages - it is useful.

-Andrei

Antony Dovgal wrote:
On 20.12.2007 09:57, Alexey Zakhlestin wrote:
being able to do the following (and not to worry about runtime
compilation) is a good reason on it's own:

array_filter($my_data, function($test){ return 3 === ($test % 4) });

Oh, my..
This code clearly demonstrates why a syntax like this should not be allowed. 
Ever.


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to