[drupal-devel] Why the object notation?
vlado
vlado at dikini.net
Thu Jul 28 07:22:33 UTC 2005
On Thu, 2005-07-28 at 07:58 +0200, Gerhard Killesreiter wrote:
>
> On Thu, 28 Jul 2005, Karoly Negyesi wrote:
>
> > > (-> is two keystrokes for me, [''] is eight)
> >
> > Gerhard, it's true that -> is less keystrokes than [' '] but there is a
> > problem -- since when do we treasure more developer time than running time?
>
> Prove to me that execution time is greatly improved by using [''] and I
> will change my opinion. :o)
Object to array converisons take time.
Otherwise there shouldn't be too much difference, since methods and
member variables are stored in associative arrays.
There is another case, apart from speed, though. Looping through hashes
is immediate and more convenient than using objects.
Vlado
More information about the drupal-devel
mailing list