Re: Array Question
| From: | Stut | Date: | Thu, 12 Jul 2007 08:58:48 +0000 |
| Subject: | Re: Array Question | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258675@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
On Wed, July 11, 2007 4:16 pm, Robert Cummings wrote: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/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. :-)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