Re: Re: Named arguments revisited

From: Date: Fri, 13 Jan 2006 00:14:26 +0000
Subject: Re: Re: Named arguments revisited
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-21499@lists.php.net to get a copy of this message
Hello Andi, I think the "sexy" syntax is a significant plus, even if associative arrays were used in the implementation. Is it a complex thing to implement? -- Best regards, Jason mailto:jason@ionzoft.com Thursday, January 12, 2006, 6:44:59 PM, you wrote: AG> In my opinion, as Ilia stated passing an associative array does the AG> job quite well for the use-case where named arguments would be useful. AG> Sure it might be a tad-bit sexier that you don't have to write AG> array() but the truth is that the implementation would probably still AG> use an array. Unlike Ada which has extremely strict typing, in PHP in AG> most cases we wouldn't be able to optimize away the named parameters, AG> meaning that we'd probably do the array() trick anyway. AG> Andi

« previous php.internals (#21499) next »