Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61767 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22121 invoked from network); 25 Jul 2012 15:17:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2012 15:17:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.42 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:50120] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/37-19281-40E00105 for ; Wed, 25 Jul 2012 11:17:24 -0400 Received: by yhoo21 with SMTP id o21so962173yho.29 for ; Wed, 25 Jul 2012 08:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=HPQQcgbO513CvaVp4+8M/zQ/Br6ycuIPm7ULk36dnJE=; b=Xt3ydgAj/kZSxs7RND616hvU8HdWLiefXvMwjNjA0UKs+aG0QwKh0BMOE/5H6bj0xC vlcxWsADn4eksh+ywC6JTYlKPUV79LrRDSQ6JVGXDy5WWjboNbcPtla0h67/LTago2/C jc5bRjcidjLctrmtyRQ+Zm4439VaRhXxxWtDqn+pm3WasjruC/0kxp9EpVOU9JK7k3Fh LwCp1SUNXPIowD95EkW9iMr9hQGVpEb942yyQgNjWB/pMzrDpr+DbieqHBu0T/lAq/4Y xQycVZ5L1TioPP8dtWx5D274tzCwF7oAcNgY+0CBnZTU5tuibyND1e18QnmojxvmbvnO dxGA== Received: by 10.42.62.211 with SMTP id z19mr25551702ich.2.1343229441301; Wed, 25 Jul 2012 08:17:21 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.64.23.74 with HTTP; Wed, 25 Jul 2012 08:16:40 -0700 (PDT) In-Reply-To: <500F7B9F.4070103@garfieldtech.com> References: <1342050547.1456.33.camel@guybrush> <4FFF6C9C.2080802@gmail.com> <36.A6.17670.8E820005@pb1.pair.com> <50005B38.3090507@sugarcrm.com> <5000BCD2.2040007@garfieldtech.com> <5000BEE9.3070006@sugarcrm.com> <500F7B9F.4070103@garfieldtech.com> Date: Wed, 25 Jul 2012 17:16:40 +0200 X-Google-Sender-Auth: VwFypU-Ft7TPhDNIPPrzQsO7d8Y Message-ID: To: Larry Garfield Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Internal iteration API From: jpauli@php.net (jpauli) On Wed, Jul 25, 2012 at 6:52 AM, Larry Garfield wrote: > On 07/24/2012 03:52 AM, jpauli wrote: >> >> On Sat, Jul 14, 2012 at 2:35 AM, Stas Malyshev >> wrote: >>> >>> 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. >> >> I'd then say : let's keep that idea somewhere to implement it in a new >> major PHP version. >> Anyway, there will come a time where we will be developing for PHP6 >> (or PHP next Major if you prefer), and I think we should use >> this gap to break BC and add new cool ideas like this one, we seem all >> to agree with. >> >> Julien.P > > > Agreed. We survived Objects becoming, er, Objects in PHP 5.0. Arrays > changing would be a major version change, but if the benefits are enough, we > could survive that, too. +1 great notice. We had a huge step between PHP4 and PHP5. It's done now (hence it wasn't that easy to achieve). So it wont be frightening to see another gap between PHP5 and PHP-NEXT-MAJOR , especially if it's lower than 4-to-5 was. Julien.P