On 06/09/2013 20:58, Matthew Leverton wrote:
What I don't like about named parameters is that if I build a library, now even my parameter names are unchangeable if I don't want to break any backward compatibility, since I never know if somebody will decide to call my single parameter method with named parameters. Are we prepared to go through every PHP function and make sure the names of the parameters are set in stone before this feature would go live?
The position of parameters and the name of the function must already be maintained... I dont see why appropriately naming variables is such a burden.
Of course, people who use the feature are not going to assume pre-existing code is fair-game from named parameters. As with most new php features, it's to improve code written in the future.
Michael -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php