On Tue, January 19, 2010 10:05 am, Stanislav Malyshev wrote:
> Hi!
>
>> I'd rather see two other things that are missing, support for
>> dynamic object and array de-referencing like
>> (new class)->method() and get_array()["index"].
>
> The second was next on my list, while the first seems to me kind of
> exotic - why create object only to call one method and immediately
> drop
> it? Why this method is not static then?
>
>> I honestly don't see func()()()() make anything better in the
>> world of a PHP programmer.
>
> You probably don't use closures, right?

I use closures, though rarely.

When I use one, I consider it exotic/obtuse/unusual enough to require
self-documenting code, with a temp variable whose name include
'closure'.

I do not want something as tiny as () to be all I have to clue in the
new guy to a closure pattern/paradigm/algorithm.

Maybe if I was typing all closures all day in PHP I'd see more need
for it, but are you really doing this that often?

-- 
Some people ask for gifts here.
I just want you to buy an Indie CD for yourself:
http://cdbaby.com/search/from/lynch



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

Reply via email to