4 ms·
php with lambdas eliminates a bunch of the syntax and can let map/reduce style code be colocated while still achieving the functional style benefits. A big iss
by ec109685 2y ago
php with lambdas eliminates a bunch of the syntax and can let map/reduce style code be colocated while still achieving the functional style benefits.
A big issue though (at least for some apps), is there is no attempt to make that code parallelized for the io parts. So if you aren’t careful, you can end up with n+1 style IO calls, making things very slow.
- skrebbel 2y agoPersonally I consider that a benefit at least as often as not. In Nystromian terms, PHP functions are colorless, and that removes a whole kind of complexity (at the cost of, like you correctly point out, potential performance problems).