Re: [RFC] Interface Default Methods

From: Date: Thu, 15 Jun 2023 15:52:28 +0000
Subject: Re: [RFC] Interface Default Methods
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-120595@lists.php.net to get a copy of this message
On Thu, Jun 15, 2023 at 9:16 AM Tim Düsterhus <tim@bastelstu.be> wrote: > > Hi > > On 6/15/23 17:08, Deleu wrote: > > The feature may introduce a new way for *Users of PHP* to break BC with > > *Other Users of PHP*. The language change itself has no impact on PHP code > > written prior to the feature. The additional note about how users may break > > BC by using the feature would be a description of the feature itself, thus > > might be best declared as part of the Proposal instead. > > > > There's also the possible impact with regard to static analysis tools, > IDEs and formatters that do not expect a method body to exist within > interfaces and thus might erroneously report such an interface as > invalid. This might be considered an impact on code written prior to the > feature existing. > > Best regards > Tim Düsterhus I have added a brief section in RFC impact that code analysis tools will need to be updated. This is implicitly true for many language features, but I see no harm in calling it out in the RFC, so I have done so. Thank you for the feedback.

« previous php.internals (#120595) next »