Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91303 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22569 invoked from network); 18 Feb 2016 23:38:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2016 23:38:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=colinodell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=colinodell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.44 as permitted sender) X-PHP-List-Original-Sender: colinodell@gmail.com X-Host-Fingerprint: 209.85.218.44 mail-oi0-f44.google.com Received: from [209.85.218.44] ([209.85.218.44:34138] helo=mail-oi0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/16-27267-C0656C65 for ; Thu, 18 Feb 2016 18:38:53 -0500 Received: by mail-oi0-f44.google.com with SMTP id m82so1148091oif.1 for ; Thu, 18 Feb 2016 15:38:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=FawGHcAKg9RH7gbSciXQlweE2bnXNTwRmaqmZcHWAPs=; b=GM6XFTKYbu3FxjQ7Ig/F5wpHUiL2jfUcQ37yl1T5vwhFikJq+7AXVd/kjUHkhZfFJu Mh91YSTeRTjyI+LOPPPK0ZeI92JrOE42rw+hX7WWP14DO3yhyzW77U89hspzJwUXMbjh QTIUxEznzRbBvcNcfQh+P5UAaDG+bHm2bgD10KWKH6Y3N/SvwGm++AkURoo1ycvUk29M nptq5btjyy7VhTPvCgp3IAl8Z7JZZy+gnn5AJAbjj5aUdQQBiWpzuJKx+B2uJFF2ehBJ bjgWOZxVZlYY5c2MVOrNyAHaTPVU3cc2vZ027dpc39fB8mObKdr1cSkSlkN5BXuIZlEj JWTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; bh=FawGHcAKg9RH7gbSciXQlweE2bnXNTwRmaqmZcHWAPs=; b=FSbClQsohdHpNx2Ni7zts/eUvHmdS3YOAIHv8X6/t7Th0Kb8dHi8se6koUr3FAryTE BLrvbseajQ9COWXsJLxCt/GGSxhFtP5IpFQn5D55VZs4L5B8kleGYbZMS4Al2NvGEWFf 3eYNfwFAJCNAhbZzrUQaeUls4bEhqqV15BUc0rMsCUD3j/gaUhTmBsUZlayySz3oW5xA aWrR4nYx7Fd/Mh3+x9fA6ExEQJmTHwp0J68QZhzahJAwX+ZS97QxwgjbAKI7dbMocTuu +6ZsgTyICmdvJC/qw0oZIGNTl5oN4EAuaypnIBwZObAXjRABRqnw6mtze3V8VXU7zUwR F6qA== X-Gm-Message-State: AG10YOQVQnX/4fN467DsuSvvaC0Q6NdT6DJ3llcRIE3gIb0fBhK4mK2FTD3aEXWlGuUBE3Uhk1odm4mykCy9Nw== X-Received: by 10.202.235.85 with SMTP id j82mr8632924oih.38.1455838729886; Thu, 18 Feb 2016 15:38:49 -0800 (PST) MIME-Version: 1.0 References: <20.E2.62769.79C16C65@pb1.pair.com> In-Reply-To: Date: Thu, 18 Feb 2016 23:38:40 +0000 Message-ID: To: Thomas Punt , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113ced6e5863e9052c13dec1 Subject: Re: [PHP-DEV] Re: [RFC Proposal] var keyword deprecation/removal From: colinodell@gmail.com ("Colin O'Dell") --001a113ced6e5863e9052c13dec1 Content-Type: text/plain; charset=UTF-8 > > It would have to be done in 8.0, since removing it would constitute a BC > break. > Thanks for clarifying that Tom! Makes sense to me. > It's worth noting that there were better reasons for deprecating PHP > 4-style constructors over the simple redundancy argument. Specifically, > there was confusion as to when a PHP 4-style constructor would actually be > considered a constructor (see the RFC [1] for examples). With the var > keyword, there's no ambiguity like this. > That's a fair point. I only included that example to highlight the trend of using the PHP 5 style features over PHP 4. You're right though, there's no reason "var" might be misconstrued as something else. > Whilst the language purist in me would like to remove redundant things > like this, I feel that it's a rather unnecessary BC break to introduce. So > I'm not entirely decided on this. > I'm not 100% convinced on this either. I just thought the idea had enough merit to warrant a discussion :) Colin --001a113ced6e5863e9052c13dec1--