Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sandreas
4 months ago
|
parent
|
context
|
favorite
| on:
PHP 8.5 adds pipe operator
Yeah, I agree. That's an advantage of pipes - although much harder to read and write than chained methods in my opinion.
The use-case in the article could still be solved easier with extension methods in my opinion :-)
troupo
4 months ago
[–]
Yeah, the examples should also show that you can use arbitrary functions, not just library functions. E.g. your own business logic, validation etc.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
The use-case in the article could still be solved easier with extension methods in my opinion :-)