RE: [PHP-DEV] feature request

From: Date: Mon, 19 Mar 2001 20:36:01 +0000
Subject: RE: [PHP-DEV] feature request
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-49396@lists.php.net to get a copy of this message
No doubt, clean code is king! And we don't want more work for Andi! :) Basically I see this functionality as filling a niche and nothing more. It's not a wonder-drug, it just makes certain situations a little more readable/maintainable IMHO. -Chris > -----Original Message----- > From: Andi Gutmans [mailto:andi@zend.com] > Sent: Monday, 19 March, 2001 1-12 pM > To: Jason Greene; Phil Driscoll; Chris Newbill; Zeev Suraski > Cc: PHP DEV > Subject: Re: [PHP-DEV] feature request > > > Ugh, that's exactly what I didn't want to get into. If you want > an array of > results you're better of doing a few if() statements. It's faster and > writes much nicer code. > > Andi > > At 02:08 PM 3/19/2001 -0600, Jason Greene wrote: > >Perhaps isset should be branched to form a separate function to handle > >multi args, > >we could offer things in the new function such as an optional argument > >that passes back an array of results. > > > >-Jason > > > >----- Original Message ----- > >From: "Phil Driscoll" <phil@dialsolutions.co.uk> > >To: "Chris Newbill" <cnewbill@onewest.net>; "Zeev Suraski" > ><zeev@zend.com>; "Andi Gutmans" <andi@zend.com> > >Cc: "PHP DEV" <php-dev@lists.php.net> > >Sent: Monday, March 19, 2001 1:58 PM > >Subject: Re: [PHP-DEV] feature request > > > > > > > My earlier post to the list doesn't seem to have arrived yet, > so here it is > > > again. You'll note from the posting that I'm not keen on the > patch staying > > > in. There are considerable efforts being made by several of > us on the QA > > > team trying to make the language more orthogonal, and this > kind of ad hoc > > > addition really doesn't help. > > > > > > ************ > > > >That is the only thing that I see of any real use as well. > I was just > > > >humoring Andi and his idea that we would soon be requesting that > > feature of > > > >knowing which one failed the test. > > > > > > I was really voting no for the original feature - just > returning true or > > > false - unless it can be shown (and implemented) that > iswhatever(multiple > > > args) will work sensibly across the board, and that implementing > > > iswhatever(multiple args) does not waste the function > namespace for a new > > > feature - e.g. loads of php functions take optional extra arguments to > > > modify their behaviour, but once iswhatever gained the multi argument > > > functionality described, it would be impossible to extend the > functionality > > > in this way. > > > > > > Cheers, and apologies for such a long sentence > > > ************ > > > -- > > > Phil Driscoll > > > Dial Solutions > > > +44 (0)113 294 5112 > > > http://www.dialsolutions.com > > > http://www.dtonline.org > > > > > > > > > -- > > > PHP Development Mailing List > > > <http://www.php.net/> > > > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-dev-help@lists.php.net > > > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > > > >

« previous php.dev (#49396) next »