Re: Re: PATCH: anonymous functions in PHP
| From: | Antony Dovgal | Date: | Thu, 20 Dec 2007 09:57:06 +0000 |
| Subject: | Re: Re: PATCH: anonymous functions in PHP | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34127@lists.php.net to get a copy of this message | ||
On 20.12.2007 12:41, Alexey Zakhlestin wrote:
> it doesn't make sense to put some of these functions in libraries,
> because they are really once-used.
It makes perfect sense to keep all your functions in one place instead of
spreading them all over the code.
And no, this kind of "optimization" doesn't make your code run any faster.
>> So here is what we _actually_ get with this anonymous function syntax:
>> 1) Yet another way to make the code unreadable and overcomplicated.
> it is not unreadable. it is perfectly readable for people with
> modern-languages background (and I don't mean 1 or 2 languages, I mean
> majority)
A new syntax that conflicts with currently existing one (or looks very similar to)
doesn't make code more readable, it adds more confusion instead.
>> 3) 10 people happy because they got a new toy.
> "thousands" is a closer number
Does this mean you do admit that this is just a new toy? (pretty useless, but funny) =)
--
Wbr,
Antony Dovgal