Re: Array Question

From: Date: Tue, 17 Jul 2007 14:12:03 +0000
Subject: Re: Array Question
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-259015@lists.php.net to get a copy of this message
Thanks for all the input. You've all been pretty informative. Sorry of delayed response to help but was busy. You all are appreciated. "Stut" <stuttle@gmail.com> wrote in message news:4695ED48.6000004@gmail.com... > Richard Lynch wrote: >> On Wed, July 11, 2007 4:16 pm, Robert Cummings wrote: >>>> But I'd have to say that the intent is not all that clear, really, >>>> and >>>> I'd be leery of this feature, personally. >>> I wouldn't be leery at all. It's been around for a very long time and >>> it's documented: >>> >>> >>> >>> http://www.php.net/manual/en/language.types.array.php#language.types.array.casting >> >> As soon as I hit send I knew that would be mis-interpreted... >> >> Leery is the wrong word. >> >> Sorry. >> >> It just seems a bit to clever to me... >> >> I suspect I'd skim this code a hundred times and not realize what it >> was doing. >> >> But maybe that's just me. :-) > > I would have to agree. I'm a big fan of self-documenting code, and this > one requires a little bit more knowledge of the intricacies of PHP than I > would expect from your 'average' developer. > > If performance is going to be an issue (and in terms of cycles I can't see > this saving much), buy faster/more hardware - it's far cheaper than > developer time!! > > -Stut > > -- > http://stut.net/

« previous php.general (#259015) next »