[development] Time for a new chapter of an endless debate
dopry at thing.net
Mon Jul 3 00:22:22 UTC 2006
On Sun, 2006-07-02 at 17:04 +0200, Karoly Negyesi wrote:
> Drupal uses objects. Reasons are probably lost by now in the ancient past.
> PHP is still not the best. I can write:
> somefunction(array('this' => 'that'))
> while there is no similar construct for objects.
> Also we use arrays for links, menus, links and soon mails.
> So, I propose removal of objects on practical grounds: shorter notation
> and a very little memory gain.
> If you have an opinion please share but I think we are only furthered by
> _practical_ viewpoints. No theory can make Drupal faster or lower its
> memory usage.
> The change looks big but it's not, it's scriptable and I can whip up such
> a script in a very short time.
> Ps. Readability issues? I do not think there is any difference.
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?
More information about the development