Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119031 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86684 invoked from network); 25 Nov 2022 00:07:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Nov 2022 00:07:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9C498180054 for ; Thu, 24 Nov 2022 16:07:44 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29838 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 24 Nov 2022 16:07:44 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id D728C3200B9F for ; Thu, 24 Nov 2022 19:07:42 -0500 (EST) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Thu, 24 Nov 2022 19:07:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1669334862; x= 1669421262; bh=AeDgS9iNUEUbVYMbwj1FQOX0MTSeMwQKddtkqDbIJ50=; b=N xbL5oAYsAJxmIerQ8hpis4gQgyKMehuxjdGbnnJPSRPs3NiredBizHYaPvqfNSvF kYDhL4j7n6LxcAnLXdfwGyTNab+LRFfKbEwNwMLXsEkQW7DmE8WmH4HsJFopZS2n T2sqVyeGSfy33hq6WOJNVNCQhxDHf1IBf9IvZ6+9ETIIKT/l4rMF+7U6ehA5Vo4C i6vXtfjqyRkXjHr/VDQU/S5ePxeqLXzk7ua2CpLnyYDvSTDwev/5f37a7eXgXM/q EJKAJmDHX2Yd1vH1A1YK4kzuZUFmrRTCL87cGD0Aj6sHVL3rACfUFoAHlnrtstj7 AGZtxvTd45+BiNmx6VaeA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1669334862; x=1669421262; bh=AeDgS9iNUEUbVYMbwj1FQOX0MTSe MwQKddtkqDbIJ50=; b=T34Hb7+vvOA8Bo4cEzRr1tVDQCKlIpPugA9WLa/ICE9V tMKi5Xj1mXpsmR/wmVhokrY2F9SKWR6klBII7qhkUBbRmP1FsCbq7dcxbhq8maSR WdvJeIhnj/C5q2pwjBiqe+HMEkbaS8tNxQtt7fplh3n+FAcUgBi4KE+JCvT3CPUs oZExWDw5otYjU7qEFYVDAFIrrjFlPoIDslhVlbnuNmPAFQLR4hr+Q0bj0itI/5RK wYJ84YGc8whZ4OdnX54XRfi4QlB4ndUO4Tq4N8cWpKaaIFtJLl57Y0WXIQiVkdhD EvXaXAKHyEvt+nDmLxwzvYSwCdA9RxXL6UNDwhBKrg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrieeggddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgrrhhr hicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh eqnecuggftrfgrthhtvghrnhepgeelgfekudeivddvteffueejffdthfejieevhefgffek udevkedtvdelvddvffefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 35EF01700089; Thu, 24 Nov 2022 19:07:42 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-ID: <411c8b54-78c2-4e67-91da-cd2f2dab88aa@app.fastmail.com> In-Reply-To: References: <0854b030-c51c-4c1b-a7dd-22835a1e5da9@app.fastmail.com> Date: Thu, 24 Nov 2022 18:07:14 -0600 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] [RFC] Asymmetric Visibility, with readonly From: larry@garfieldtech.com ("Larry Garfield") On Sun, Nov 20, 2022, at 7:20 AM, Dan Ackroyd wrote: > Hi Larry, > > Regarding the syntax, up until now PHP has only supported the letters > a-z and underscore in keywords. > > I realise this is an aesthetic thing, but "private(set)" looks like a > function to me, and not a keyword. I saw the previous poll, and it > didn't include options for either protected_set/private_set or > protectedset/privateset. > > Was there a technical reason for excluding them as an option? Not in particular. We originally proposed `private(set)` because that's what Swift uses. In the discussion people proposed several alternatives that I put into the poll, but `private_set` wasn't one of them. Although several people said they were opposed to parens in the keyword, the two options that had parens (`private(set)` and `pubilc(set: private)`) were the leaders for all rounds. I was quite surprised at that, personally; I expected `private:set` to do a lot better under the circumstances. But that's not how the poll played out. --Larry Garfield