Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99782 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17673 invoked from network); 6 Jul 2017 04:47:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jul 2017 04:47:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.48 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 74.125.83.48 mail-pg0-f48.google.com Received: from [74.125.83.48] ([74.125.83.48:35749] helo=mail-pg0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/D4-15131-5C0CD595 for ; Thu, 06 Jul 2017 00:47:01 -0400 Received: by mail-pg0-f48.google.com with SMTP id j186so5136530pge.2 for ; Wed, 05 Jul 2017 21:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=SRM9l9q1s971BGs7qXZZm8gWT7jtNOAX7jM787bvweo=; b=cWSh3+PtlE0es1RCkfAp4T+gCliNe8y3G7KIhzVpr1veVcRbTvK7JIR9g2SYOpR21L DTTdBGBS3gtSei0nW3AE6VqK3FbEgIU7DmQY5igWz6j8IECvof7MQufsAIVB4qYcGZ+E Qp5XtbpiGds4ZpwMoK633UYzbjOCbTLCCxGcKvVTqKdeIDQil4wSRW7Sk7fbbrSMpCBK 8LoXIedMFyOLcVJZ6uJfvz3BZN7O9C/B6B98AeWLPzbFaGRT8hb35A4yVXhCfGOCP+Ov +A5+4JF3+jUWOyyfgdqeFWkPTYYvCmqdmITl5HDqj/biXKegsxGozeGoxrP7MQWXgLA+ tBVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SRM9l9q1s971BGs7qXZZm8gWT7jtNOAX7jM787bvweo=; b=Uwe1oXtz0yElgXmYvR7F6i1uRTsa3jb1WZU0sDCiEk8mzpx+3PkfSlCIzd75U2ORLz W/Uo9gusrNKxG9JaLjOymR4PwK9AcQnlgYpfKE5aaoh11phVhGimaTqWj0N2864ms3ML VE9/EQ6yQ2Iko6seZ1gxtkIH3fpJq0UxJIXMrfjLVM8hGUMqS9w8vh9U2LiJClGi455k 9BCoZgZVi3wVMMYV6YRNcvT10oyPneEP8XLrpyBbNCLDUKrdVT+1XWfZaBef/NDxn3F9 RqoRN4J2Qp6OJp50vGQ4RIPfukd31dBZSXXHsArnaycAL98dDWG9fNhibWETEni1BHte fkSQ== X-Gm-Message-State: AIVw113h/pSXT2Oydbwa9J7meaN3sltOsSebw9TJ4+cSakDcBfN+L5Nx vk1d5J/4zeOd8UyLQP8= X-Received: by 10.84.133.37 with SMTP id 34mr25201601plf.58.1499316418386; Wed, 05 Jul 2017 21:46:58 -0700 (PDT) Received: from Stas-Air.lan (108-233-206-104.lightspeed.sntcca.sbcglobal.net. [108.233.206.104]) by smtp.gmail.com with ESMTPSA id z86sm1381141pfl.40.2017.07.05.21.46.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jul 2017 21:46:57 -0700 (PDT) To: internals@lists.php.net, Sebastian Bergmann References: <827b77ce-f2b7-930a-34cb-ce11ebc2d531@php.net> Message-ID: <4dc7b920-6f34-8f39-0fe8-8a289ae67f3f@gmail.com> Date: Wed, 5 Jul 2017 21:46:56 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <827b77ce-f2b7-930a-34cb-ce11ebc2d531@php.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] OBJECT_OPERATOR vs. DOUBLE_COLON From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > I think that using :: on a variable that contains an object should not > "fall back" to a static access on the object's class. Instead the > runtime should error out. Why should it not do what it does now? What would it achieve? I don't see any improvement in changing that - it may break code that is using this facility, and it won't make anything better. True, this is an exotic and non-obvious feature, but many languages have such features, which are used only by people that need them. If we proposed to add such feature, true, it may be too exotic to be added on its own merits, but since it is already there (and, probably, used in some code somewhere) - why bother messing with it? I don't see how just leaving it be hurts anything. -- Stas Malyshev smalyshev@gmail.com