jorisvaesen's avatar

Joris Vaesen

jorisvaesen

Member since

70

Total Reputation

3

Total Arguments

4

Total Votes for Arguments

Arguments and votes

1

Adds important value to the language. As I'm almost always programming against interfaces, this would help reducing boiler plate code a lot.

Share:
Read the RFC: Property Hooks jorisvaesen avatar
jorisvaesen
voted yes
1

Waiting for this for so long! Can finally ditch al the MyClass::create() static constructors.

Share:
Read the RFC: new MyClass()->method() without parentheses jorisvaesen avatar
jorisvaesen
voted yes
3

It adds complexity, it can be confusing, but i think it's an important step forward for php to implement such feature.

For the readonly vs. asymmetric visibility discussion: you can mix them up since they aim a different goals (write-once vs writing from).

Share:
Read the RFC: Asymmetric Visibility v2 jorisvaesen avatar
jorisvaesen
voted yes
88

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!