Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97956 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 562 invoked from network); 25 Jan 2017 08:49:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jan 2017 08:49:05 -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.160 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.160 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.160] ([81.169.146.160:27022] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/1E-00729-08668885 for ; Wed, 25 Jan 2017 03:49:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1485334141; l=1543; s=domk; d=kelunik.com; h=Content-Type:Cc:To:Subject:Date:From:References:In-Reply-To: MIME-Version; bh=PBC0mq65C9T5+tB0JYPoJEAFQu7/WmkMN+AlQ93Z6i8=; b=jQDHkz2Eu4WUvHmKAz1vB7pDc8dtbCNrwtRwaN3kG23qeoTE1eNe+rXMSuiQ1zj15T OQsengUPKRIcwI9s/0oNMpcFfEJQ8jY66jmGUTYwgVfIrx2U51+6Zos7W2/gIv+UNEZ1 bNkMPbrZhEJ9I2ssk0VRO3zpDVzW8tbmBpK0s= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLDup6E67mzuoNJBqD/t9k= X-RZG-CLASS-ID: mo00 Received: from mail-qt0-f177.google.com ([209.85.216.177]) by smtp.strato.de (RZmta 39.11 AUTH) with ESMTPSA id a089cbt0P8n19WK (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Wed, 25 Jan 2017 09:49:01 +0100 (CET) Received: by mail-qt0-f177.google.com with SMTP id l7so10633066qtd.1 for ; Wed, 25 Jan 2017 00:49:01 -0800 (PST) X-Gm-Message-State: AIkVDXI8e1i7xbAHSmz9uJyiQzm8i70+GRn2GjPIgWlK48TyL1lJYJLPPigaataD4cSr5Z66c6LxW5X9Or8AOA== X-Received: by 10.200.2.8 with SMTP id k8mr21361243qtg.163.1485334140607; Wed, 25 Jan 2017 00:49:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.144.132 with HTTP; Wed, 25 Jan 2017 00:49:00 -0800 (PST) In-Reply-To: References: <4c58f6af-13df-d1a9-5988-55bd618b1853@gmail.com> Date: Wed, 25 Jan 2017 09:49:00 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Wes Cc: Stanislav Malyshev , Scott Arciszewski , PHP Internals Content-Type: multipart/alternative; boundary=f403045e72d2d2e7a80546e74dc2 Subject: Re: [PHP-DEV] Class Constant Finalization From: me@kelunik.com (Niklas Keller) --f403045e72d2d2e7a80546e74dc2 Content-Type: text/plain; charset=UTF-8 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. --f403045e72d2d2e7a80546e74dc2--