Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91333 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69374 invoked from network); 19 Feb 2016 21:27:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2016 21:27:51 -0000 Authentication-Results: pb1.pair.com header.from=marcio.web2@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=marcio.web2@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.50 as permitted sender) X-PHP-List-Original-Sender: marcio.web2@gmail.com X-Host-Fingerprint: 209.85.218.50 mail-oi0-f50.google.com Received: from [209.85.218.50] ([209.85.218.50:35045] helo=mail-oi0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/F3-36948-6D887C65 for ; Fri, 19 Feb 2016 16:27:50 -0500 Received: by mail-oi0-f50.google.com with SMTP id x21so20966344oix.2 for ; Fri, 19 Feb 2016 13:27:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=hT6w2MyjCsFaIzwHiROFVfsPBVXdSyEMTAToZYSwHow=; b=bVZQCCPnWXn7APON0j+shnOC7MJhd0Shq811pWtb7iXp+0tG+8QfgX/oxVZMe4j0CZ qSWSd3YeSXqtomFbT5/F2H4d76rPOyBDJfITaT+mWa+83fS8gh3TVIz4kcbbuh3jKeRd NMZC0xgMSPydC6d8r+n3blIfAtK/vWZ3fWQS935P/cmt4youCx8LtecJKirnbrhM5SMV sliEMVofGm2lcmDcAEiF4UKwEkauDDcLOiK64FBzSan/FGDLfUebn0ANVjjtuj8o25DG z2RHxsQNICq6h4WdZDw0p9P7OCrp0xN9CFoqCfV7p5hg/VCKMROI5ysDqzYP2Ntnghua CHBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=hT6w2MyjCsFaIzwHiROFVfsPBVXdSyEMTAToZYSwHow=; b=cbA6M+dk3UE2jh9SVAq9fdX79bACrSxNkd4aY2IzzYcZVMxYlzUFjcklHcF3oITtHA oq+ZCjC7HQP/OGxU3cD9QQd/NzlMz4IXEMcMEAkVjTnHtdbi4Ii3XGdMuZ9+1R0iYCwa 4KZAikou3KhvL+6A5nNE66RaR1jpS/ptMsDeTj1sJeFAU9+xbzjEl7GSXHj5W5KQlNTa oLgQi/n6pyWI8YOOaM3t2GVnKSRZy58k5QHZ/Y9VSok2KGb1LH7jr29UrvzvMoG/Ev+a ODY5H9fJlHnoWwxGEIjZvmR0dAlg373TPLwNW2alEH6tXhYRAE8JzZRFeOJLg+6dbG/T OdJw== X-Gm-Message-State: AG10YORIN/XwnhTdP4wPjic16VrpABCn9dy/9mgN4O/z5TXv1ejZ91XobE8o8ksAQER+fAIMmVgX6MQpyBbXtQ== X-Received: by 10.202.82.193 with SMTP id g184mr12022678oib.110.1455917268255; Fri, 19 Feb 2016 13:27:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.4.144 with HTTP; Fri, 19 Feb 2016 13:27:28 -0800 (PST) In-Reply-To: References: Date: Fri, 19 Feb 2016 17:27:28 -0400 Message-ID: To: "Colin O'Dell" Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal From: marcio.web2@gmail.com (Marcio Almada) Hi! 2016-02-18 15:10 GMT-04:00 Colin O'Dell : > Hello everyone, > > I'd like to propose an RFC to deprecate and eventually remove the "var" > keyword. > > My understanding is that this keyword was kept in PHP 5 for > backwards-compatibility with PHP 4. However, it's been 9 years since PHP= 4 > was discontinued, so I'd like to bring this topic up for review. > > Usage of "var" doesn't seem to be as widespread recently. I've done a qui= ck > search of several major projects and libraries and found that only a coup= le > are using it. I personally haven't seen it used in any PHP 5.3+ project > I've worked on in recent memory. > > Because "var" simply acts as an alias for "public", removing it should no= t > cause any loss of functionality. Yes, it's a BC break, but developers ca= n > easily replace it with "public" to maintain the same functionality. > > PHP 7 deprecated PHP 4 style constructors in favor of the PHP 5 > __construct() method. I'd like to propose doing the same for the "var" > keyword - deprecate it in PHP 7.1 and remove it in a future version (7.2 = or > 8.0?) > > I'd appreciate any thoughts or feedback you may have, especially if you > have any objections to me creating an RFC for this proposal. > > Best regards, > > Colin O'Dell I'm +1 on this for all the reasons mentioned above. There is plenty of time for people to update and, additionally, an automated patch script could be provided along with the RFC. Thank your for taking the time discuss on this mailing list. M=C3=A1rcio Almada.