Re: function names again (goals and a questionnaire)

From: Date: Wed, 14 Feb 2001 09:04:33 +0000
Subject: Re: function names again (goals and a questionnaire)
References: 1 2  Groups: php.qa 
Request: Send a blank email to php-qa+get-2386@lists.php.net to get a copy of this message
> >*not* bc_square, that's for sure... > > I'm not sure if I got this right. Does it mean bc_square[_]root > is better, or that you prefer bc_sqrt? Only that to me, bc_square would *not* be a square root at all, but: bc_square($x) == bc_mul($x, $x) == pc_pow($x, 2) Given the sheer number of languages using sqrt for square_root, I don't really care if it's either of those. > >> 2. > >> What scheme do you prefer regarding goal 2.2? > >> deg2rad / dechex / strtolower > > > >deg2rad, or not changing them at all. > > Clarification: > IF this type of functions should change, you vote for changing > dechex to dec2hex, right? Yes... More emphasis on if though :-) > >> 3. (goal 2.3) > >> How would you treat functions like getallheaders()? How would > >> you alias this particular function should it need an alias? > > > >Leave it alone. > > > >> 4. > >> What's your take on shuffling the order of arguments in the > >> aliases? Should this happen at all? If so, what do you prefer: > >> strpos() (strpos(haystack,needle)) or explode() (basically > >> explode(needle,haystack))? > > > >haystack, needle > >But I wouldn't change them in the first place. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.qa (#2386) next »