serhii's avatar

Serhii Cho

serhii

Member since

Contributor

150

Total Reputation

5

Total Arguments

20

Total Votes for Arguments

Arguments and votes

1

I honestly don't really care about that small sugar, but I lean more towards yes than no, so ship it

Share:
Read the RFC: new MyClass()->method() without parentheses Contributor serhii avatar
serhii
voted yes
2

makes for cleaner code by removing those useless parentheses

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

Cleaner code

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

this allows for cleaner code. less verbose.

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

Looks like a good idea. first, I thought it will be too complicated for PHP to have this kind of syntax, but I've changed my mind, I think it will be amazing to have it in the language

Share:
Read the RFC: Property Hooks Contributor serhii avatar
serhii
voted yes
3

Since I'm working also with Kotlin I desperatly crave for a feature like this. At least if it is as powerful as in Kotlin where I could e.g. change the setter to be protected or private while the getter can be public

Share:
Read the RFC: Property Hooks eydamos avatar
eydamos
voted yes
2

Love it. like in swift. If property observers could be added this would be awesome!

Share:
Read the RFC: Property Hooks grandfelix avatar
grandfelix
voted yes
2

Provides a nice code structure keeping together: declaration, getter and guarded setter

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

I'm against a multi-inheritance in OOP. I don't think this RFC is necessary for the language. The current OOP system in PHP is already well developed.

Share:
Read the RFC: Interface Default Methods Contributor serhii avatar
serhii
voted no
1

I don't usually like syntactic sugar added to the PHP, but this RFC is useful. I totally see use cases for this in my projects because I use short closures all the time.

Share:
Read the RFC: Short Closures 2.0 Contributor serhii avatar
serhii
voted yes
1

Such an awful RFC and people are voting for it 😱, weird. I agree with Rasmus Lerdorf, Nikita Popov and Sebastian Bergmann, this PR should NOT go into the language.

I think we should focus more on improving the performance and fixing things that people don't like in PHP rather than implementing new features.

We already have a solid language that does so many things for us, everything else is provided by frameworks. I understand why people want to see features like this one, but I would prefer to focus on the performance and cleaning up the codebase of PHP source code.

Share:
Read the RFC: The Pipe Operator Contributor serhii avatar
serhii
voted no
6

this syntax is unclear, and functions who gets multiple arguments will not be properly supported.

Share:
Read the RFC: The Pipe Operator roeycohen avatar
roeycohen
voted no
33

I see no immediate benefit of the proposed solution over the userland implementations. The RFC mentions a shopping cart example, but I don't think that's cleaner than using league/pipeline or Laravel's pipeline.

It's a bit messy for the simpler examples as well.

Share:
Read the RFC: The Pipe Operator ju5t avatar
ju5t
voted no
15

It's almost as messy as putting all the functions into each other.

Share:
Read the RFC: The Pipe Operator t avatar
t
voted no
10

Makes code more clean because it is shorter and the use keyword is not needed anymore.

Share:
Read the RFC: Short Closures 2.0 buismaarten avatar
buismaarten
voted yes
4

Since we have already autocaptures for one liners there should be also option for multiple liners.

Share:
Read the RFC: Short Closures 2.0 raszekster avatar
raszekster
voted yes
2

Interfaces are contracts. No implementations should be allowed.

Share:
Read the RFC: Interface Default Methods pedro avatar
pedro
voted no
2

The use statements are usually what is keeping me from using the short closures, so having this resolved would make life a lot easier in those cases and the code cleaner

Share:
Read the RFC: Short Closures 2.0 Carakas avatar
Carakas
voted yes
2

I don't think we need to add business logic to interfaces. Interfaces are contracts, that's the whole beauty of interfaces (that, and the fact that they encourage composition over inheritance, which imo leads to code that is easier to maintain). Having default methods would pollute that premise.

Share:
Read the RFC: Interface Default Methods denis avatar
denis
voted no
2

We can already do this with abstract classes. I believe Interfaces should be contracts that leave the implementations up to the implementing classes.

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