Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119235 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 79710 invoked from network); 5 Jan 2023 20:18:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Jan 2023 20:18:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5828C180545 for ; Thu, 5 Jan 2023 12:18:55 -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.0 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 5 Jan 2023 12:18:54 -0800 (PST) Received: by mail-ed1-f43.google.com with SMTP id g1so40113774edj.8 for ; Thu, 05 Jan 2023 12:18:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dkWvjF0F5HzEXlKZBdHDUkJ6CGav95fkmxzYPlNIznU=; b=x9dYFuus08viCtXYJ6zou5K3bnuvr36nNxAjYguZi1OXIPXMQRz3FUbl0HDjy9GJfF E8V4Sy97/7lQXVtBWdrA2PSmwC631K2F/LhysnbY4SUUoefFoUvfLgI2CLyDH99MxoUi Vx74nexssLNCxo3tp6vr+AKFQtW7XRaxiin+enJuGf3vfD8QVsdMVbr0WTwQiydfGWwT ETNQunDVDzGFOr4bd/dfrHlgDKE8LHkW/mlglY4yxc3379JloFrMOOmf+GkTCR8OelQq +HmYtnSkXAd0b5MCRFK0KG9OdozrX/JvYl9hnDbMgBl82n54qtGQjWGfm85rTLz/k5Jz NSBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dkWvjF0F5HzEXlKZBdHDUkJ6CGav95fkmxzYPlNIznU=; b=GJ5EaZoQ6RGExH4SvWg4+7WKv55lpv9YRAWxXtghVJh1+GKm1WT34P4zrh6PxQSxrg ipqit3tHJK/qS+jfDHVWgp5W+/Y6a1fc6aWQF54CT4XJ7FwEf+8CLy2UbVzqjlAhNb69 kYyDlv4aNKj4pA1/eHKjJdvKbUi9Wv2XPVGICkNSaVH3/ofmxNUUQhOjzSoCnzQMhzYn Nw280rB033n01uUsCS4Q/E4dbQdvkE7/tl0sTE16BmpW4JBQj14qigWYpfjGK+jqU7Qb oQ26nCMxmNGbsebw+gP1z0HfD5jUSvejoAl+abaoLd6IMNyl/3fzageNKyjAwMRd2x+1 3bCg== X-Gm-Message-State: AFqh2kpfhgrF4vdtoWf7l93k5qnYZAAfCGMdMS3kQmle+o6zI2dL1V+b YtRcq/JLBpWs5Rvptw+MAWuVCWoV1Z6Ua5u6l4nfJA== X-Google-Smtp-Source: AMrXdXs4ecb0SoPOOXyKrSAiPdjN9iCe3wo2t3mziAgEO/ATbNq4861XieS/N8BggopyHGjQyTRoVHvohgLD/kNbdTw= X-Received: by 2002:a05:6402:221b:b0:48a:ffb9:9db3 with SMTP id cq27-20020a056402221b00b0048affb99db3mr2609859edb.28.1672949933495; Thu, 05 Jan 2023 12:18:53 -0800 (PST) MIME-Version: 1.0 References: <0854b030-c51c-4c1b-a7dd-22835a1e5da9@app.fastmail.com> <411c8b54-78c2-4e67-91da-cd2f2dab88aa@app.fastmail.com> In-Reply-To: <411c8b54-78c2-4e67-91da-cd2f2dab88aa@app.fastmail.com> Date: Thu, 5 Jan 2023 20:18:42 +0000 Message-ID: To: Larry Garfield Cc: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Asymmetric Visibility, with readonly From: Danack@basereality.com (Dan Ackroyd) On Fri, 25 Nov 2022 at 00:07, Larry Garfield wrote= : > > 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 th= at I put into the poll, but `private_set` wasn't one of them. Although sev= eral people said they were opposed to parens in the keyword, Have you considered updating the RFC to use private_set, and not introduce new characters for keywords? As it wasn't in the poll, then sticking to the poll result with at least some people saying they are opposed to it seems not necessarily the correct choice. The ()'s look particularly funky to me with property promotion. cheers Dan Ack