Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109025 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 7170 invoked from network); 15 Mar 2020 14:42:18 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Mar 2020 14:42:18 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 19B8F1801FD for ; Sun, 15 Mar 2020 06:04:27 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 15 Mar 2020 06:04:26 -0700 (PDT) Received: by mail-vs1-f49.google.com with SMTP id n6so9425197vsc.3 for ; Sun, 15 Mar 2020 06:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6F4ep8sg19FDHWqy7EdtfYYxLwZOG6Z0onxW99YeIkE=; b=YQDc5emBf08aMAbcNklBn+bOBp/NCfGhltX+Tw9xdmSJ35N8ssfTi9EJ7qUVcRDuIN InmVt3oa/YRZ90qG1itb47fTaRzeqkRk2DlMxxbcrBvE1bfD8nr75n6YPKsLdkPp8CGf 1SCDsky8oS2CgMaBqbh8uAkuMULQe/tdAODMQNcvzCVhtp07f8xjgqeo8z5iKX5GDeUk DnlwbbQxQhckkPkIma0gqiVUZp0GvyZc/3LlGOQk2/iA1AxQEx7dbpL+9PgLn2Xg/VAq BIW89Ma+2IoJeTiHq55FLoKdVL/MqjW/Hsi2XNyUjMY2Mt/e3SpJKOMkFaryw0WH2d5g 5UVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6F4ep8sg19FDHWqy7EdtfYYxLwZOG6Z0onxW99YeIkE=; b=KLwqFYxtI6vbh3DadiH5CzLS0ZbQIMAj9XncHpS3S+MLSae13sas3Jcs8NvGJCc0mZ 2n+jse6rDz51cirbu9TC4NtXr00YPg11LaG8CfhsVn5mY6dws+Et8nXujJj8a3YBzKC4 2KzRNIHLxoSN/aiY/S7FybNLBHgUvW2VX+G1DI6SdqXb6CxpvMMj1Z/mjWr/ADTZhbT6 yGeglfhmxku/EbiQBpxfTh+rVn4k7H9FRjppeTwMRq3lU5M1IcnWKQFi1ForhZDtdCps 4hj9XTYl4jio15cwH8NmAe54oICa2oULAewP1c89pPyeueqAmIVKkigaUOQB8xT0MTnO Z4vg== X-Gm-Message-State: ANhLgQ1Fx0uyffA3s1JuLQKbjSjFsYTmqXw6DN2Co5/Fpqg/0H5aCMMy G8Jv9aGugrvuFME2/W34WkkvH1wmVSuPneIFL0g= X-Google-Smtp-Source: ADFU+vtUognlphdHYlzeRgGfTpsyBwkl6tCwURL71DBrGuqOGvLPiXT3Q98hPu21cFaRw1SypBl2oCUTlxufBJrYHvY= X-Received: by 2002:a67:eecb:: with SMTP id o11mr14628593vsp.227.1584277464059; Sun, 15 Mar 2020 06:04:24 -0700 (PDT) MIME-Version: 1.0 References: <8545d15e-ddd5-42be-8405-09697a077234@www.fastmail.com> <4d9688fe-cc57-44af-903e-05f4cbb1bbcc@www.fastmail.com> <6bcbf0a5-92d8-4cfa-a00f-e0e967fc037e@www.fastmail.com> <700327df-45d5-47ca-8828-d7ad9c9bee2e@www.fastmail.com> In-Reply-To: Date: Sun, 15 Mar 2020 14:04:12 +0100 Message-ID: To: Marco Pivetta Cc: Larry Garfield , php internals Content-Type: multipart/alternative; boundary="0000000000007893a605a0e45711" Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Immutable/final/readonly properties From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --0000000000007893a605a0e45711 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Marco, Yes, it still allows default values. The reason why I'm reluctant to disallow them is that this restriction would feel a bit ad-hoc for me. I mean, I wouldn't like to add another special rule for "write-once" properties, unless there is a strong argument for it. Besides, as far as I know there is no precedents of disallowing default values of similar properties in other languages, so I feel that the feature would stay the most intuitive as it is now. However, I'm eager to listen any objections about this. I know for one that ProxyManager wouldn't work with "write-once" properties having default values. But can we consider this use-case an edge case, right? Could users circumvent the issue just by changing the default value to an assignment in the constructor? Or would it cause a big headache for them? M=C3=A1t=C3=A9 Marco Pivetta ezt =C3=ADrta (id=C5=91pont: 2020. m=C3= =A1rc. 14., Szo, 22:53): > Hey M=C3=A1t=C3=A9, > > Is the RFC still gonna allow default values (constants, at this point)? > > While I don't see a major problem with it, it seems a bit weird... > > On Sat, Mar 14, 2020, 12:00 M=C3=A1t=C3=A9 Kocsis wrote: > >> Thank you, Larry, for your response! I share your opinion. However, I'd = be >> curious if there is anyone who doesn't? >> >> As things currently stand, I plan to start the vote on Monday with an >> unchanged proposal (+ an extended future scope section). >> >> M=C3=A1t=C3=A9 >> > --0000000000007893a605a0e45711--