Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92179 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83403 invoked from network); 9 Apr 2016 07:39:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2016 07:39:15 -0000 Authentication-Results: pb1.pair.com header.from=sebastian@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sebastian@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 188.94.27.5 as permitted sender) X-PHP-List-Original-Sender: sebastian@php.net X-Host-Fingerprint: 188.94.27.5 scarlet.netpirates.net Received: from [188.94.27.5] ([188.94.27.5:46548] helo=scarlet.netpirates.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9B/41-03277-B91B8075 for ; Sat, 09 Apr 2016 03:39:08 -0400 Received: (qmail 8042 invoked by uid 89); 9 Apr 2016 07:39:06 -0000 Received: by simscan 1.4.0 ppid: 8034, pid: 8037, t: 0.0371s scanners: attach: 1.4.0 clamav: 0.98.4/m:55/d:20700 Received: from unknown (HELO ?192.168.178.24?) (php@sebastian-bergmann.de@84.165.91.53) by scarlet.netpirates.net with ESMTPA; 9 Apr 2016 07:39:06 -0000 To: internals@lists.php.net References: Message-ID: <5708B197.9020108@php.net> Date: Sat, 9 Apr 2016 09:39:03 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Final properties From: sebastian@php.net (Sebastian Bergmann) Am 05.04.2016 um 11:13 schrieb Marco Pivetta: > First of all: +1 to this: very useful for value objects! My thought exactly. > do we want to use `final`, or `immutable` for these properties? I have the same sentiment you have, that "final" would be confusing and "immutable" would be better. But it's also confusing to have the same concept another language has under a different name. Hm. I think I tend towards "immutable".