Re: Re: [RFC] Named parameters

From: Date: Tue, 10 Sep 2013 15:10:50 +0000
Subject: Re: Re: [RFC] Named parameters
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-68992@lists.php.net to get a copy of this message
On Tue, Sep 10, 2013 at 11:19 AM, Rasmus Lerdorf <rasmus@lerdorf.com> wrote: > I think you are over-thinking this case actually. I would prefer to just > keep it simple. If someone does a named parameter call to a method that > doesn't have a parameter with a specified parameter it is an error, > regardless of how that came to be. If there is a parent method with the > parameter name, it doesn't matter since that is not the method they are > calling. Just keep it simple and generate an error just on that call. > The fix for the user in this case may very well be to go and make the > parameter names match the parent method, but let them worry about that. > > -Rasmus Thanks, this makes more sense to me, and is surely a less complicated implementation.

« previous php.internals (#68992) next »