Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101062 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99482 invoked from network); 5 Nov 2017 12:04:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2017 12:04:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.221 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.221 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.221] ([81.169.146.221:32853] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/D5-09857-13EFEF95 for ; Sun, 05 Nov 2017 07:04:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1509883438; s=domk; d=kelunik.com; h=Content-Type:Cc:To:Subject:Date:From:References:In-Reply-To: MIME-Version; bh=X4jMP+rHXrq4PoyAYhawo44cdD8Q5FjDDxr1uEgWW+U=; b=DY43FuHobMXt+4gOIMvwsauAp2Cwjo2Nw43wP9lK8IEBxh1M5UjuVClRerGsGE/gZw rtvEiJV9wm24Bxo7N+0tshmwKQz1Q8m4EIEsy3jbv65bKCsLUSpvwfJjdm7gX44NEALJ 0eY5+xrVTp448JCmlYMz0nMA4b+V1bscNCjNQ= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mlsGbEv0XHBzMIJSS+jKTzde5mDb8Db2nURiu0cA== X-RZG-CLASS-ID: mo00 Received: by mail-yw0-f173.google.com with SMTP id z195so5781151ywz.6 for ; Sun, 05 Nov 2017 04:03:58 -0800 (PST) X-Gm-Message-State: AMCzsaWk8fCJRLxn9cJiWPx8OhIGX9CDz3cmVUkHDktfpAjuZuJ6XjWY j63vjZDtkmS6gafZtIGHEMp+4ReVpGI5VMbCt1A= X-Google-Smtp-Source: ABhQp+RkJGHClNsa3yea+PI7NRn2FkNxSXt5L6CwJ8WHT9peZgvTDAb0b9KyJZLmX6qxbjKR28pEhKEudQMNTCYrh6I= X-Received: by 10.37.180.2 with SMTP id n2mr7800444ybj.377.1509883437582; Sun, 05 Nov 2017 04:03:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.212.203 with HTTP; Sun, 5 Nov 2017 04:03:57 -0800 (PST) In-Reply-To: <3f093ce2-e00e-f210-6e35-de31eb2f4b07@gmail.com> References: <93a05192-ed34-2164-50f9-2799899b32d1@fleshgrinder.com> <4ee3d414-92e1-75c7-402f-16a37ed3016b@fleshgrinder.com> <3f093ce2-e00e-f210-6e35-de31eb2f4b07@gmail.com> Date: Sun, 5 Nov 2017 13:03:57 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Stanislav Malyshev Cc: PHP Internals , Fleshgrinder , Nikita Popov Content-Type: multipart/alternative; boundary="f403045e6ef8f30f54055d3b21ee" Subject: Re: [PHP-DEV] Constants and Access Modifiers From: me@kelunik.com (Niklas Keller) --f403045e6ef8f30f54055d3b21ee Content-Type: text/plain; charset="UTF-8" > > Hi! > > > My wording was maybe a bit wrong here, and I was biased by the fact that > > I would like to see abstract constants. The fact that not everything can > > What is "abstract constant"? If you need something that can change, just > use a method. Constant is meant to be a nice way to write something > inherently constant, such as instead of "/very long > (and+)cubmber|some?*regexp/" you'd write NICE_REGEXP_CONSTANT. But it's > not supposed to create parallel inheritance structure or something. If > it needs to be non-constant, just use a method. > Totally agree with that. We should deprecate constant inheritance instead. Regards, Niklas --f403045e6ef8f30f54055d3b21ee--