Re: Internal iteration API

From: Date: Sat, 14 Jul 2012 00:35:53 +0000
Subject: Re: Internal iteration API
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi!

> So, I've not been inside the engine so in practice this may make no 
> sense at all, but what about looking at it the other way around?  Vis, 
> instead of making objects more and more like arrays, make arrays an 
> object that happens to implement ArrayAccess, Iterator, and whatever 

That'd be very nice idea if we were implementing new PHP. I think the
fact that arrays are not objects in PHP is a source of many problems.
However, right now it probably won't be possible to do it without
breaking BC in many places dealing with array copy/assignment/passing
semantics.

-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227




Thread (24 messages)

« previous php.internals (#61217) next »