|
|
|
|
|
by dotancohen
210 days ago
|
|
I downvoted you before reading the fine article. I'm back to correct that. The new array_first() and array_last() functions are nice, everything else is either reimplantation of existing features or "features"which will make maintainability more difficult. The pipe operator is one such example. I don't need it - these nested methods are not really an issue in any codebase I've seen. The new syntax only works for unary functions, so higher arity functions must be wrapped in an arrow function. It's a mess and more bug prone than just nesting the functions. |
|
It's coming - but to get PHP RFCs to pass they have to be salami-sliced, otherwise they're voted down.
https://wiki.php.net/rfc/partial_function_application_v2