[development] Time for a new chapter of an endless debate

Steve Dondley sdondley at gmail.com
Mon Jul 3 01:27:25 UTC 2006


Think of all the little php snippets, custom blocks, *.tpl.php, etc.
files that use object notation instead of arrays.  All of them will be
useless. Converting them all over will cause a lot of people a lot of
pain and frustration.

Switching would not be worth it and a big mistake, IMHO.

On 7/2/06, Gordon Heydon <gordon at heydon.com.au> wrote:
> Hi,
>
> >
> > I'm down on consistencies sake. I'm also into the flexability of arrays.
> > Our occasional use of objects don't allow us to do anything useful with
> > them. Where we do have objects, they don't have any methods. So whats
> > the point of keeping them around?
> >
>
> There are a couple of reasons why we do not change.
>
> 1. Objects are easier to work with than arrays, but then again, it is 6
> of 1, half a dozen of the other.
>
> 2. What is changing going to get us? We would spend the next 6 months
> moving all the code so that we use arrays over objects, and we will be
> no further ahead. There is no gain or loss.
>
> 3. I remember reading somewhere long ago. Dries likes them over arrays.
>
> This is like saying nodes are crap, and we should change them to the
> next greatest XYZ.
>
> Gordon.
>


-- 
Dondley Communications
http://www.dondleycommunications.com

Communicate or Die: American Labor Unions and the Internet
http://www.communicateordie.com


More information about the development mailing list