luis-engelniederhammer's avatar

Luis Engelniederhammer

luis-engelniederhammer

Member since

40

Total Reputation

2

Total Arguments

4

Total Votes for Arguments

Arguments and votes

1

finally

Share:
Read the RFC: The Pipe Operator luis-engelniederhammer avatar
luis-engelniederha...
voted yes
1

Just as any other modern language, a good change. Seems as it's still optional to have parentheses, I don't see a problem

Share:
Read the RFC: new MyClass()->method() without parentheses luis-engelniederhammer avatar
luis-engelniederha...
voted yes
32

This is good to have.

Properties are useful for exchanging (reading and writing) single values. Properties are good for data binding, etc.

With this RFC we can implement:

  • Validation
  • Trigger events
  • Call methods if there is more to do

Update: About the $field I am not sure. Having a separate backing field can have some advantages.

Share:
Read the RFC: Property Hooks maz avatar
maz
voted yes
87

With First-class callable syntax available since 8.1, it would now be possible to write it as below, which is much better then string names of functions:

$result = "Hello World"
    |> htmlentities(...)
    |> str_split(...)
    |> fn($x) => array_map(strtoupper(...), $x)
    |> fn($x) => array_filter($x, fn($v) => $v != 'O');
Share:
Read the RFC: The Pipe Operator pronskiy avatar
pronskiy
voted yes
RSS Feed Contribute Watch on YouTube Our License
© 2024 RFC Vote. This project is open source. Contribute and collaborate with us!