Re: [PHP-DEV] [RFC] Asymmetric Visibility, v2

2024-07-20 Thread Rodrigo Vieira
r now there is only get and set, but what about unset, isset, etc? How is it to define the visibility for this in the future? public private(set, unset) ?? Where would new operations beyond the `set` will enter this syntax? Cheers, Rodrigo Vieira Em Jul 19, 2024, 10:18 PM -0300, Larry Garfie

Re: [PHP-DEV] [Early Feedback] Pattern matching

2024-06-20 Thread Rodrigo Vieira
OMG, this RFC is a true masterpiece!!! Congratulations, it turned out really well! I hope this gets approved soon! Rodrigo A. Vieira Em 20 de jun. de 2024, 15:03 -0300, Eugene Sidelnyk , escreveu: > You won't believe it, but just right now I've been thinking about that it > would be a wonderful

Re: [PHP-DEV] [RFC] Asymmetric Visibility, v2

2024-06-10 Thread Rodrigo Vieira
I didn't like the `Prefix-style` syntax. I prefer the `Hook-embedded-style` syntax. First let's look at the counterpoints of the `Prefix-style` syntax: ## 1) "`Prefix-style` is more visually scannable" > The set visibility is 10 lines away from the get visibility! Solution: ```php class HookEmbe