Re: [PHP-DEV] RFC: separate inheritance from subtyping (PHP v8)

2020-06-12 Thread Michael Morris
PHP's notion of "implements" is identical to that of Java and C#. This is not by accident, many programmers have to work in multiple programming languages. The less a language does things "differently" the better. And honestly, the upsides of this proposal are not worth the BC breaks created with

Re: [PHP-DEV] RFC: separate inheritance from subtyping (PHP v8)

2020-06-10 Thread Larry Garfield
On Wed, Jun 10, 2020, at 11:16 AM, Doug Wilbourne wrote: > I propose the following language additions: > > > > 1) add three new keywords to the available syntax for class declarations: > 'inherits' and 'subtypes' and 'patterns'. > > > > Currently the 'extends' keyword means both inherits and

[PHP-DEV] RFC: separate inheritance from subtyping (PHP v8)

2020-06-10 Thread Doug Wilbourne
I propose the following language additions: 1) add three new keywords to the available syntax for class declarations: 'inherits' and 'subtypes' and 'patterns'. Currently the 'extends' keyword means both inherits and subtypes, which leads to unnecessarily restrictive typing problems in order t