RE: [PHP-DEV] Feature request for min() and max()

From: Date: Mon, 20 Nov 2000 17:27:31 +0000
Subject: RE: [PHP-DEV] Feature request for min() and max()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-38643@lists.php.net to get a copy of this message
At 12:20 20/11/00 -0500, Colin Viebrock wrote:
I agree with Sterling. We should output an error because it's a wrong way to call it and you should make the person attentive to his mistake. Well ... it *could* be a mistake on the part of the end-user, although in my case it was just a feature request. As for Sterling's comment that "you should be sure of your variable types", I thought that PHP is pretty loose with typing anyway, and this wouldn't be a huge problem (heck, min() and max() take lists of scalars too, not just arrays). Anyway, I obviously can't convince you all ... so I'll change my scripts. :)
I just don't like it too much when a function has more than one semantic description on how it works (and I think min() already has more than one). I don't think it has anything to do with types :)
Please reverse this patch. I never applied it, just posted it here for discussion.
OH :)
Now ... when will someone look at bug #7503? ;)
--- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.dev (#38643) next »