Re: Named arguments revisited
| From: | Andrei Zmievski | Date: | Wed, 30 Nov 2005 21:50:23 +0000 |
| Subject: | Re: Named arguments revisited | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20912@lists.php.net to get a copy of this message | ||
Can you explain your reasoning behind "essential for using PHP as a solid templating language" and "nothing is a good substitute for the real deal"?
- Andrei
On Nov 29, 2005, at 11:17 PM, Jared White wrote:
Named arguments are absolutely essential for using PHP as a solid templating language, and, in fact, they also greatly enhance code readability for complex method calls of in-depth APIs. My experience with both Objective-C and Python has showed me the wonders and joys of named arguments, and it is something I've desperately wanted in PHP for ages. I'm sure I'm not alone in this. I've tried array constructs, multiple arguments with string-based names and fancy parsing using func_get_args(), and various combinations thereof, and nothing is a good substitute for the real deal.