Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109108 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 7214 invoked from network); 17 Mar 2020 19:26:13 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Mar 2020 19:26:13 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AC47B180503 for ; Tue, 17 Mar 2020 10:48:54 -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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (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 ; Tue, 17 Mar 2020 10:48:54 -0700 (PDT) Received: by mail-ua1-f46.google.com with SMTP id 9so7843513uav.12 for ; Tue, 17 Mar 2020 10:48:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PUPORDROYYAwrhMt4twwQuXLy8z58IhS/F9k9uCfCOU=; b=UEvTAE0hBiLxNo3HWGKCma7MvCDgygxKY6PLGgZ5aBBZqOljVbZnopNnamVhpk1UXN 6avF3p87mMXfX3LeJwfvTvR+lA/Kf5W6REVFb8bxFHT/hOlv/qlJ0FUur1W6PsvTm8Ab pUuR1vgPQouSf9nXziZjUL5OZOj3BWxrFXB6jb3NLMxoKDl6WWNbPh62Y9pVTxeTyXCZ 0kH+QrYUbszZoXNdAEnotVGszMddY4EZYrak6ZHDDNSNI/LDBtPswZR+RhuFt6+Luohh m5qYBD8w56KGBguwkgT0KiJAG2j75t/gkL7tGawK7SZz5xKZUEo0T7fjzz2JOeU5o2Gc zprQ== 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=PUPORDROYYAwrhMt4twwQuXLy8z58IhS/F9k9uCfCOU=; b=a5zBdd8VsRpZuqBhZQnqb3KT6/iGu0rGuJZ4EtjS10ZaTPNOyUuddmxVMENWj6ZpEv v9Db7awGXmWapc9td+0va6SKKPAIXz1ZgxW2XkwJryjX8gpib+RHYrrVpnSwd1LXG9b0 GSrRcBQ3aK7+Mmlu57w7vAxRS4lFh33iBY3VuAYnKGPxNB8IuwhblDxE610rZolkzIu/ 3xg9Fxn5K3KaUXidfyMQ6gp11o0AUxGmhPoq4M6NzUr8+KYd4sF1WgsFhaH2REo5hrBr ch569lpHae2eBFM6Jbl4ZruWKNoMrhm2BWjTObiLtj6wVnNm4899mxmEu3aPJaBGI5d1 ZuoQ== X-Gm-Message-State: ANhLgQ0ZJLZv/Xs+xKl3zvIxsx9f61Bh5MLefbPd/qm3eTLloeVEtEKz iuU1f5C5fjx10p1FJwi3MLAikUDrfyRiLXzu/kYDkg== X-Google-Smtp-Source: ADFU+vvxqePwLWqecx8ZF6nEitxoVe6zQkkKHy5YRWIZik4COUhNOaG6E3v2jk9H7eShjVALQtpwdl1HwfP9XdISo5A= X-Received: by 2002:ab0:770b:: with SMTP id z11mr103510uaq.101.1584467325449; Tue, 17 Mar 2020 10:48:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 17 Mar 2020 17:48:34 +0000 Message-ID: To: Nicolas Grekas Cc: =?UTF-8?B?TcOhdMOpIEtvY3Npcw==?= , PHP Internals List Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] [VOTE] Immutable/final/readonly properties From: Danack@basereality.com (Dan Ackroyd) Nicolas Grekas wrote: (from the other thread) > there must be a way to work around the keyword - > either via reflection or another means. Can you expand on why there 'must' be a way to work around this? Can you provide some example code where not being able to change the value is going to cause problems. > I voted against the RFC because it has too many rough edges to me. > eg cloning doesn't work, the initialization needs special rules, etc. To be clear, cloning would work....but just not be useful. But being required to write a function to copy an object, and overriding the values doesn't seem like a terrible burden. And, because PHP has an evolved type system, it is always going to have some 'special rules' for certain things, just because of maintaining BC. > I don't think these issues can nor should be figured out later on: they are > low-level conceptual issues IMHO. I can't see where the edge-cases are going to bite us. What's an example of where they can't be figured out later? btw I totally agree that having them now would be nicer... cheers Dan Ack