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

Robert Wohleb rob at techsanctuary.com
Sun Jul 2 18:44:07 UTC 2006


Karoly Negyesi wrote:
> Hi,
>
> 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.
This can easily be accomplished with
somefunction((object)array('this' => 'that'))
>
> 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.
Or, we remove arrays.
>
> 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.
>
> Regards
>
> NK
>
> Ps. Readability issues? I do not think there is any difference.
>
>
>
>
> --No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.9.8/380 - Release Date: 6/30/2006
>
>

-- 
----------------------------------------------------------
It is by Caffeine alone that I set my mind in motion
It is by the beans of Java, that my thoughts acquire speed
The hands acquire shakes; the shakes become a warning 
It is by Caffeine alone that I set my mind in motion



More information about the development mailing list