ricardo's avatar

Ricardo Boss

ricardo

Member since

158

Total Reputation

3

Total Arguments

6

Total Votes for Arguments

Arguments and votes

1

really useful for chained method calls that already are crowded because of PHPs -> operator

Share:
Read the RFC: The Pipe Operator ricardo avatar
ricardo
voted yes
1

C# has it and I want it in PHP too. It is very handy for implementing new interfaces with simple getters for example.

Share:
Read the RFC: Interface Default Methods ricardo avatar
ricardo
voted yes
8

Just look at how other languages solve this. C# for example. Make short closures like that.

Share:
Read the RFC: Short Closures 2.0 ricardo avatar
ricardo
voted yes
121

At least once a week, I throw away an array_map because it ended up looking too bloated and go with a classic foreach instead. Short Closures 2.0 without the use(...) block would've solved this problem, just 2 votes...

Share:
Read the RFC: Short Closures 2.0 davi avatar
davi
voted yes
39

Creating traits for default implementation is just a pain. I want syntactic sugar

Share:
Read the RFC: Interface Default Methods marc avatar
marc
voted yes
55

I wrote down some thoughts on this RFC on my blog. I think it's worth rethinking our current definition of what "an interface" is. Especially since many languages are interface default methods as their way of multi-inheritance.

Share:
Read the RFC: Interface Default Methods Contributor brent avatar
brent
voted yes
RSS Feed Contribute Watch on YouTube Our License
© 2024 RFC Vote. This project is open source. Contribute and collaborate with us!