Re: Re: Named arguments revisited

From: Date: Sat, 14 Jan 2006 12:01:09 +0000
Subject: Re: Re: Named arguments revisited
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.internals 
Request: Send a blank email to internals+get-21530@lists.php.net to get a copy of this message
Hartmut Holzgraefe wrote:
Jared White wrote:
While ideally it'd be nice to have named parameters used in the core of PHP, I realize that's probably an impossible task at the moment. So I agree that the main goal is to allow users to define APIs in PHP using this feature. If that's all we had, it'd be good enough I think. (At least, it'd certainly serve my needs. :) )
So far there is no difference between a user level and an internal function from a callers point of view, adding such an asymmetry now really doesn't sound like the right thing to do ...
There is. Internal functions can take optional parameters per reference, user level functions can not. (see preg_match, for example). Regards, Stefan

« previous php.internals (#21530) next »