Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97962 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38132 invoked from network); 25 Jan 2017 19:17:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jan 2017 19:17:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.45 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.45 mail-wm0-f45.google.com Received: from [74.125.82.45] ([74.125.82.45:36983] helo=mail-wm0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/22-00729-6C9F8885 for ; Wed, 25 Jan 2017 14:17:26 -0500 Received: by mail-wm0-f45.google.com with SMTP id c206so47987004wme.0 for ; Wed, 25 Jan 2017 11:17:26 -0800 (PST) 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-transfer-encoding; bh=bxz9WzJU/Xps5f+zp5z2t9PtURdeGPGu4eVTwhCk3So=; b=RKp+auo5s+0AY5yu9kMtXuzwnUAa6NhdmKlIyXP4ZPI2ipQYLmdcu5Rup+aPYVZpa6 El/dy9RlLnZs2KAVShJu60XxcfoI7+CyAlL9EWgpjguYJWPYqoOvv70IuakzNkV9y5l9 DvcpgZYfmkG5Q9JeZAz/pJlx5qbVyAmzB6mLcmrZjPtHrDH5AE39OnQelIFiZnOtGOfe O63Cn4wixH8gJUhVRfg7dt9z9zAag3S7ltVkHJMhMOFv0PcLihilVZQFMfEilaffydK0 awR8wX+HNT63q5ACxBquKB1WlzWT7vJROSDnfk3Ush5qnIjf/d/tLxWssM2BDkO7blgB z4/g== 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-transfer-encoding; bh=bxz9WzJU/Xps5f+zp5z2t9PtURdeGPGu4eVTwhCk3So=; b=ReyjN0ks0gnbMHJs5vgRHaInI+QjEd7zNDgzy413wPxo29Hrg48ffI0zSfOFfDH4bB Y01xAvW3QZCZrsrgu6iEw0nu0KqyyzuCC5GW/GFliyO5S7FDK79OiKqRjabPpIV7PWbo U485JOLWG1ehSNTu+FCy2M3/Sq5/a4Lti3r+WrB5mcndoiNCvSGGT/IXmeLZvE4gbNxf BSYrNbGHsSWT7Ogs8fF7ftKyeVH0Wl327rZH2ENAs8nEN4V2S8s2mFR8xbSt+OxQ98U1 XgN68XJvjoKUQJ6B0XAPWbiL9yLU+uFvsHSaARzGHyunqEvTm5qCwdiJmX9io0d3kE2I 78oQ== X-Gm-Message-State: AIkVDXJgkayXF+NlXHEB9L8tiso+oFDvShOhhQwEd6vq3wtCUG+adzEWtHdLzsn7zjXhOA== X-Received: by 10.28.27.14 with SMTP id b14mr22824413wmb.82.1485371843506; Wed, 25 Jan 2017 11:17:23 -0800 (PST) Received: from ?IPv6:2a00:23c4:4bd2:6e00:e583:4717:5982:7f99? ([2a00:23c4:4bd2:6e00:e583:4717:5982:7f99]) by smtp.googlemail.com with ESMTPSA id w16sm14000812wmd.4.2017.01.25.11.17.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jan 2017 11:17:22 -0800 (PST) To: internals@lists.php.net References: <4c58f6af-13df-d1a9-5988-55bd618b1853@gmail.com> Message-ID: <31155180-6b90-2521-6218-fe09713edab1@gmail.com> Date: Wed, 25 Jan 2017 19:17:03 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Class Constant Finalization From: rowan.collins@gmail.com (Rowan Collins) On 25/01/2017 08:49, Niklas Keller wrote: > 2017-01-25 9:27 GMT+01:00 Wes : > >> They don't belong to a class only, but to a class and all its descendants. >> Ideally, descendants should not inherit constants (or anything static), but >> we can't change that now, so final could make sense here. Basically, they >> should work exactly like static fields, except that static fields can be >> re-assigned, while constants may not. >> > Well, we can deprecate them and remove it with PHP 8. > You mean, make all constants non-inheritable? Why? Late static binding is a documented language feature, I don't see why it's any weirder for constants to participate in it than static fields and methods. Regards, -- Rowan Collins [IMSoP]