jklmnop's avatar

jklmnop

jklmnop

Member since

45

Total Reputation

3

Total Arguments

3

Total Votes for Arguments

Arguments and votes

1

Interfaces are not intended to dictate how something is implemented. Perhaps this is a conversation for another type of architecture?

I don't understand the struggle with just using a Trait or extending an Abstract class that implements a specific Interface when you need it. That's what they're there for.

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

I love this idea, but I loathe the syntax. However, I am not clever enough to propose another syntax. My issue with chaining by nesting functions is that it reads backwards, and that's just so visually messy that I end up just setting the variable multiple times for readability alone, which is the desired outcome anyway. It's not like we NEED to be terse in PHP to save a few bytes. Better to have obvious and readable code. So while I'm voting yes for this, it's for concept only, not crazy about the syntax. 🤷‍♀️

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

It's not an uncommon syntax. Other languages do this. Could be handy. If you're against it, just write it the long way and/or have your code sniffer reject it. You don't have to use it.

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