sam-moffat's avatar

Sam

sam-moffat

Member since

55

Total Reputation

3

Total Arguments

5

Total Votes for Arguments

Arguments and votes

1

I thought short closures 1.0 was a step in the right direction, I would like to see this continued.

Share:
Read the RFC: Short Closures 2.0 sam-moffat avatar
sam-moffat
voted yes
1

An interface should only describe a contract that a class must adhere to and nothing else. If there is a commonly repeated segment of code to implement part of an interface, I believe that this can be covered with a trait, as it is clearly opinionated in how this interface should be implemented.

My vote is towards being able to add interfaces to traits.

Share:
Read the RFC: Interface Default Methods sam-moffat avatar
sam-moffat
voted no
1

Pipes are common in many languages and aren't an unfamiliar concept. Whilst there are packages, like Laravel's pipelines, that implement a way to achieve this, this syntactic sugar makes it easy to implement lightweight code for performing a simple series of actions on a subject.

Share:
Read the RFC: The Pipe Operator sam-moffat avatar
sam-moffat
voted yes
75
  • Interface shall stay light, pure contracts defining expectations, else they are just abstract classes with multi-inheritance.
  • If multi-inheritance is the subject, a specific RFC shall be done on this.
  • An other away might be to dig back this RFC to add interface to traits: https://wiki.php.net/rfc/traits-with-interfaces
Share:
Read the RFC: Interface Default Methods victor avatar
victor
voted no
81

We spend a lot more time reading code than writing it. The elegance of short closure combined with the convenience of variable scope usage has already shown to be a game changer on Typescript and there doesn’t seem to be any technical issue with having it on PHP.

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