On Jul 11, 2023, at 12:03, Peter Kokot <p...@php.net> wrote:
> I really liked this idea actually but I'm still not so sure about it,
> what would be the "right" approach.

So, here's a crazy thought: why do inheritance, interfaces, and traits need to 
be separate at all?

At some level, they're all ways of composing a class with different 
restrictions, e.g. inheritance requires a single parent, interfaces must be 
abstract, traits don't interact with typing, etc. This RFC was an attempt to 
lift some (but not all) of these restrictions on interfaces; in that sense, it 
almost seems like too small of a step, and one which leaves the language in a 
confusing intermediate state.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to