tpetry's avatar

Tobias Petry

tpetry

Member since

240

Total Reputation

2

Total Arguments

2

Total Votes for Arguments

Arguments and votes

1

The promised backwards compatability was never a real feature. You can still get name clashes with existing methods. So its a new feature promising something that will never happen. It got rejected for good reasons.

Share:
Read the RFC: Interface Default Methods tpetry avatar
tpetry
voted no
22

I could have used it multiple times for array transformations. But the RFC still built on really ancient PHP behaviour (mapping functions as strings) and should be redone by fosucing only on modern syntax:

  • closures and short closure: |> fn($x) => array_filter($x, fn($v) => $v != 'O')
  • first class callable syntax: |> str_split(...)
Share:
Read the RFC: The Pipe Operator tpetry avatar
tpetry
voted yes
RSS Feed Contribute Watch on YouTube Our License
© 2024 RFC Vote. This project is open source. Contribute and collaborate with us!