Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73019 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79787 invoked from network); 9 Mar 2014 00:17:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Mar 2014 00:17:24 -0000 Authentication-Results: pb1.pair.com header.from=me@rouvenwessling.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=me@rouvenwessling.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain rouvenwessling.de designates 5.35.242.46 as permitted sender) X-PHP-List-Original-Sender: me@rouvenwessling.de X-Host-Fingerprint: 5.35.242.46 rouvenwessling.de Linux 2.6 Received: from [5.35.242.46] ([5.35.242.46:55575] helo=lvps5-35-242-46.dedicated.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/C5-44862-313BB135 for ; Sat, 08 Mar 2014 19:17:24 -0500 Received: by lvps5-35-242-46.dedicated.hosteurope.de (Postfix, from userid 5001) id 602BD69F14EC; Sun, 9 Mar 2014 01:17:20 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lvps5-35-242-46.dedicated.hosteurope.de X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Received: from rouvens-air-7.localdomain (xdsl-85-197-44-180.netcologne.de [85.197.44.180]) by lvps5-35-242-46.dedicated.hosteurope.de (Postfix) with ESMTPA id BCB7569F04F6; Sun, 9 Mar 2014 01:17:19 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) In-Reply-To: Date: Sun, 9 Mar 2014 01:17:11 +0100 Cc: Arvids Godjuks , internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <03CFE6C6-0742-4928-BD2B-E9C920E9246A@ajf.me> <29BDF40C-562D-4943-877B-70701335D3AA@ajf.me> To: Marco Schuster X-Mailer: Apple Mail (2.1874) Subject: Re: [PHP-DEV] Idea: ifdef-like feature to ease userland BC From: me@rouvenwessling.de (=?iso-8859-1?Q?Rouven_We=DFling?=) On 09.03.2014, at 00:44, Marco Schuster wrote: > This helps against API-layer changes, but once you try out new syntax > features (not just yield/goto, but I have stuff like named parameters > or that argument unpacking stuff in mind), then you need a parse-time > filter so that older PHP versions do not cough up on syntax errors. Try out? Why do you need to support multiple versions of PHP when = testing some new feature? If you have to support the old version anyhow, what advantage do you = gain by shipping the same code twice, just one version a bit prettier? Why would I want to do #ifdef version >=3D 5.6 function(...$array); #else call_user_func_array('function', $array); #endif instead of just call_user_func_array('function', $array); I really don't want to come across as hostile, but this seems poorly = thought out. We all like to play with the new shiny, but I don't see = such a feature benefitting the quality of the code out there. Best regards Rouven=