Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65700 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58778 invoked from network); 6 Feb 2013 17:42:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2013 17:42:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.176 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 209.85.212.176 mail-wi0-f176.google.com Received: from [209.85.212.176] ([209.85.212.176:46635] helo=mail-wi0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/52-45907-60692115 for ; Wed, 06 Feb 2013 12:42:31 -0500 Received: by mail-wi0-f176.google.com with SMTP id hm14so5864095wib.3 for ; Wed, 06 Feb 2013 09:42:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=0mzi3fSYN5r3VitEN2sRbrzF5g/orhoIa73aISKt0pU=; b=QSROe8v1aU/EAYuI7RWIlvNvcAcIDSkdE2AXJ6PdEnMEFmJwG1Jm+slAuhOkpn3sNx 9k8xUf8yxcrRp6RnLaataxWlkfyO78SwoCvE2KNqFIiBKdX6/SKS/7Uh+FGT9QawExeE pn2R+2Svqq0q3zmQ+nSdYHFVF2B3RiMYGivhO/WKJDyB9/uEkycd1pEwxswRkwnOou0J qVmLdVda7264EQ9I50aU/38yFjtdjrMAFLf5C4XDvP2eVyjhu871f0rxr/YmcbLQIr5S tpXgTYJ0H347qXniY7xeNlbRyk4qBKpHgczXjlhz/oUjla0CCbpKilwEGnBBn4w7G9DK tskQ== X-Received: by 10.194.108.101 with SMTP id hj5mr51628616wjb.6.1360172548309; Wed, 06 Feb 2013 09:42:28 -0800 (PST) Received: from [192.168.1.26] (122.Red-83-52-185.dynamicIP.rima-tde.net. [83.52.185.122]) by mx.google.com with ESMTPS id eo10sm4655506wib.9.2013.02.06.09.42.26 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Feb 2013 09:42:26 -0800 (PST) Message-ID: <51129593.1040409@gmail.com> Date: Wed, 06 Feb 2013 18:40:35 +0100 User-Agent: Thunderbird MIME-Version: 1.0 To: Karoly Negyesi CC: "internals@lists.php.net" References: <510EBF98.4060900@lerdorf.com> <5110AFFB.8040303@lerdorf.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning From: keisial@gmail.com (=?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?=) On 05/02/13 21:16, Karoly Negyesi wrote: > new keywords is an interesting discussion to have -- it's actually the > first real thing to discuss as far as I can see. For example that is > something that version strings would tremendously help. You do not > need to maintain the whole lot of behaviors for every version just the > parser? Also, new keywords typically introduce new syntax. Here's an > example, a quick github code search found > https://github.com/chriso/klein.php/blob/master/klein.php#L600 this. > function yield() is not a valid usage of the new yield keyword nor is > yield() so perhaps it's not impossible to accomodate this kind of > code? Let's discuss. That's one of the easiest incompatibilities to detect (run new-php -l to all your files), and also to fix (replace all instances of that new keyword with a new name).