Re: consistent way to handle structs

From: Date: Fri, 11 Jan 2002 14:31:34 +0000
Subject: Re: consistent way to handle structs
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-76651@lists.php.net to get a copy of this message
On Fri, 11 Jan 2002, Hartmut Holzgraefe wrote: > Andi Gutmans wrote: > > >... it'll encourage passing parameters in hashes which is something we > >really wouldn't want. > > > it is already common practice in userland so you are fighting > > a war that is already lost IMHO > > as soon as you have, say, more then five parameters things get > confusing, especialy if people have different habbits regarding > paramter ordering, see mktime That's part of the problem. A good programming practice is to not have so many parameters to a function, if you do then you possibly have a problem. Better rewrite the function or split it in two or something similar. -Andrei "Claiming Java is easier than C++ is like saying that K2 is shorter than Everest." -- Larry O'Brien (editor, Software Development)

« previous php.dev (#76651) next »