yassine's avatar

Yassine

yassine

Member since

75

Total Reputation

2

Total Arguments

3

Total Votes for Arguments

Arguments and votes

5

C#-inspired properties, yes please!

Share:
Read the RFC: Property Hooks yassine avatar
yassine
voted yes
23

For example:

$result = "Hello World"
    |> 'htmlentities'
    |> 'str_split'
    |> fn($x) => array_map('strtoupper', $x)
    |> fn($x) => array_filter($x, fn($v) => $v != 'O');

Is 'nicer' since it has better readability and clearer syntax than:

$result = array_filter(
        str_split(
            strtoupper(
                htmlentities("Hello World")
            )
        ),
        fn($v) => $v != '0'
    );
Share:
Read the RFC: The Pipe Operator josebenraul avatar
josebenraul
voted yes
1

Always disliked the use of use.

Share:
Read the RFC: Short Closures 2.0 yassine avatar
yassine
voted yes
RSS Feed Contribute Watch on YouTube Our License
© 2024 RFC Vote. This project is open source. Contribute and collaborate with us!