Re: Re: Named arguments revisited

From: Date: Thu, 12 Jan 2006 23:44:59 +0000
Subject: Re: Re: Named arguments revisited
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-21498@lists.php.net to get a copy of this message
In my opinion, as Ilia stated passing an associative array does the job quite well for the use-case where named arguments would be useful. Sure it might be a tad-bit sexier that you don't have to write array() but the truth is that the implementation would probably still use an array. Unlike Ada which has extremely strict typing, in PHP in most cases we wouldn't be able to optimize away the named parameters, meaning that we'd probably do the array() trick anyway. Andi

« previous php.internals (#21498) next »