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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to