Туговиков Станислав ([info]latrekc) wrote,
@ 2009-01-06 04:06:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Entry tags:работа

вопрос к коллегам:

Как считаете, такой код можно коммитить?

скриншот




(Read 8 comments) - (Post a new comment)


[info]latrekc
2009-01-06 12:09 pm UTC (link)
это я написал вчера
пока думаю, оставить как есть или переписать на foreach

(Reply to this) (Parent)(Thread)


[info]lucky_brick
2009-01-06 12:15 pm UTC (link)
интересно а лямда-функция создаться один раз или на каждом элементе

(Reply to this) (Parent)(Thread)


[info]latrekc
2009-01-06 12:40 pm UTC (link)
один конечно
впрочем можно потестить

http://community.livejournal.com/ru_php/1182872.html

(Reply to this) (Parent)(Thread)


[info]insa
2009-01-06 09:28 pm UTC (link)
конечно не один

(Reply to this) (Parent)


[info]latrekc
2009-01-06 12:42 pm UTC (link)
аналог
$lamda = create_function('$x', 'return time();');
array_map($lamda, $someArray);

сколько раз здесь будет создана лямбда? =)

(Reply to this) (Parent)


(Read 8 comments) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…