Re: Array Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux