Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101124 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48629 invoked from network); 11 Nov 2017 23:44:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2017 23:44:13 -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.67 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 74.125.83.67 mail-pg0-f67.google.com Received: from [74.125.83.67] ([74.125.83.67:52054] helo=mail-pg0-f67.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/F7-15386-C4B870A5 for ; Sat, 11 Nov 2017 18:44:12 -0500 Received: by mail-pg0-f67.google.com with SMTP id p9so10042348pgc.8 for ; Sat, 11 Nov 2017 15:44:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=PZTZDkYMstacTXn1ROFVsJF45BC6mgJtGw1oB/PYpRA=; b=jhFOWEpacQRZygrjOksiR2WlMCEL/OJgCR+8ZwC1n56KfNlwNVhzw+qPW91TQYA0F6 BwFsc53aKNktGegCrugxTWgQ3duPJrOXz+8q3RxCp/lc6zqy3kQYeQCAActh4akDi2FR jMhsMriQsMWu1TfZovO0lI8PQ3AoFdCHAzwm+vX0/4bi2uFro2fG3drFEGfXDn6AIUfY KaNMWV2YiJhL1VqCvounF6g8/Vu8mpiH9hbT//CNcJSqdezX1xtpsX6Nmiv+o1JUiMy6 3G2d94aWDJsQR3gHFr42GgDnoRZpz2zlkfqhqhBMLdzRMaXDGvCZr/pTwy8KJAZ0RedL lO/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PZTZDkYMstacTXn1ROFVsJF45BC6mgJtGw1oB/PYpRA=; b=mheDZIUu/fq10sAjn6PF2G+d/MzSzqdGfGJXcKRYrM0XgdPgtUrzn3HNHm/d1dV0l0 35iEWpuJCq8Neoi4XbD5+ovus19i3oVYK7223cHmWxs+g8IiOL3vZtqhOEhScMjBmbcZ nT6KAB8JNtkj5cv/wBLhVNUxBXquerdu4uFSSyGE2ld/IuSq2j/kr5bWgaJRoM8B9Sa1 ngMsTs43gmi74b+Rm1eYDcZR91/ZJZatNNMGdIjV53Te6jBX9FtXgvqPud/LH7RbezKD PqNTSYenVUFjrB2ljJwpZrZUabaTxJX+KPUsEIPx927oog3WdLvgiazQr/8auZ7U0IMg LRUg== X-Gm-Message-State: AJaThX6dtFR1XSyHipqW9oEQ7ywK/hgUl9/c6HaOy/Elyi8y01X13nL3 STge11NiJHw/RfdTUUo6qA== X-Google-Smtp-Source: AGs4zMbMJYJZiwsf/eJUgM/ZoCZ2HQ9SX/drC1yHMdIX1vEX/WN3gwLGORG7cqdtmFfVl5CMVcwuaQ== X-Received: by 10.84.254.78 with SMTP id a14mr4633113pln.353.1510443849187; Sat, 11 Nov 2017 15:44:09 -0800 (PST) Received: from Stas-Pro-2016.local (c-73-71-144-171.hsd1.ca.comcast.net. [73.71.144.171]) by smtp.gmail.com with ESMTPSA id v9sm14826874pfg.85.2017.11.11.15.44.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Nov 2017 15:44:08 -0800 (PST) To: internals@lists.php.net, Niklas Keller Cc: Nikita Popov References: <93a05192-ed34-2164-50f9-2799899b32d1@fleshgrinder.com> <4ee3d414-92e1-75c7-402f-16a37ed3016b@fleshgrinder.com> <3f093ce2-e00e-f210-6e35-de31eb2f4b07@gmail.com> <0061a0c9-328c-75cb-cf6f-8e444e9ea3c0@fleshgrinder.com> <2f555141-96e0-3bab-c191-1216747644a5@fleshgrinder.com> Message-ID: Date: Sat, 11 Nov 2017 15:44:07 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <2f555141-96e0-3bab-c191-1216747644a5@fleshgrinder.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Constants and Access Modifiers From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Yes, Dart has a different understanding of const, which is exactly why I > posted it for you guys. In the hope that it helps to get more different > views on the topic. Currently you are too concentrated on how it is > implemented in PHP at this time, and argue that it is impossible to > diverge from that path. Which is simply not true, we only have to ensure > backwards compatibility. I am not arguing it's impossible, I am arguing it is not a good idea. We have the concept of constants in this language, and bolting on it a completely different concept from different language, which by coincidence was named with the same term, would only be a source of confusion. If we wanted immutable objects in language - which I am not convinced at all we do, but assuming for a minute we did - there's no reason to conflate them with constants as we have them now. These are different things. -- Stas Malyshev smalyshev@gmail.com