Re: [Named parameters, was Syntactic improvement to array]

From: Date: Mon, 05 Feb 2007 10:44:50 +0000
Subject: Re: [Named parameters, was Syntactic improvement to array]
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-27799@lists.php.net to get a copy of this message
Lukas Kahwe Smith wrote:
Named parameters is not just syntax sugar, as they would make it possible to get compiler errors and phpoc support automatically over having to implement some array based solution to trigger errors and some
Not 'our' way of named parameters where the main feature is the var-args like behaviour of the parameter list, i.e. being able to pass in "unknown" parameters. Useful for e.g. HTML generation or DB queries where you can then map parameter names to HTML attributes or DB fields respectively. So they are effectively an associative array and syntactic sugar was good enough for us. But that's a completely different direction than the and more more strict way PHP is heading (PPP, typehints, ...) so The List(tm) won't like ;-) - Chris

« previous php.internals (#27799) next »