Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110779 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 10571 invoked from network); 29 Jun 2020 16:14:21 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Jun 2020 16:14:21 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F1A991804D3 for ; Mon, 29 Jun 2020 08:03:02 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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-il1-f180.google.com (mail-il1-f180.google.com [209.85.166.180]) (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 ; Mon, 29 Jun 2020 08:03:02 -0700 (PDT) Received: by mail-il1-f180.google.com with SMTP id i18so14742287ilk.10 for ; Mon, 29 Jun 2020 08:03:02 -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=jjdkioAtUAJ9rWSJPdYWvWPP3NGbQ06deW65pGS9o7w=; b=ANKzM9hlpCLSbrZS3IWD1O5E6Ec3tvqu1ih3JcRaH+TQoM3xCUUIl3P94mTMEPSpN3 yXeNpxALe10iUUgONOsuoAaSiWwqHqyLxWqAAVTBtLb4tiuv7uLiCBoyBWdNQnE9r5E/ V97+i05j9qh7MZLgH2AFTFtgN1AOPO9jfoDPETY0zUXByeoVCqsvceaFOSuo6vx4Y6hH y2FzQqglGOtPwwA1gOuI6VScJt60Az3reYZTPezSUFUNRdAPthntfHmUObjvmtoj74dU dfwM6cBkRBVRb7nv9jwR7MZ3GOtdJSWqSrTwhsJbCmdBlZ3XKgSxt5EhdTa/adZPO3h8 x3aQ== 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=jjdkioAtUAJ9rWSJPdYWvWPP3NGbQ06deW65pGS9o7w=; b=iZ3zsAOa+8Nd6YkJzgSK65eFAr7oqEzKZWHGXCZNhRLH4c6adAlEPtWB9G+QO2Gjxc XcHX8ZwjceIE2wfoIxvVKMjXpPgOK0Na9iXxJ7cxzcWA2QxoVPHhbN57Q15hX2o9xHKl KYi+56R8dacD9sIYX0gJy/bRWm84zH+0DjQCtPMeBz+4q8mANmgHoQ8w7iYOIWslQCqx hP1JvRe7kR64gTkDhW/CmY5rHULOJvJdFbhE4ZiJxVzacWmstc27jEOpbhbb3BZ2EUDA Z9jiiH89tuttY3HQR2B4Gt8SB8ubol6RmzqiomH5AePlosA7eduVopqkpdqOZBXwUPUE cUCg== X-Gm-Message-State: AOAM530zzqm3YS6YlV8XNHQy5D8pPS9Luxrz28HHNTKI+ms0E1z4i2wW E+K5EQFx+mUztC1y8rcFqTdulh8JnRWDoJQ0eq0y75J9 X-Google-Smtp-Source: ABdhPJz4K07wtGk987PDRTFQatjFNxn6e2ZlVZxQLw7FQnoqZb+NgI7OrC4S5y3sn0IO4bDcGLzIaiWOwY4OjP67vu8= X-Received: by 2002:a05:6e02:961:: with SMTP id q1mr3196862ilt.94.1593442980405; Mon, 29 Jun 2020 08:03:00 -0700 (PDT) MIME-Version: 1.0 References: <5ef9f918.1c69fb81.58a86.e504SMTPIN_ADDED_MISSING@mx.google.com> In-Reply-To: <5ef9f918.1c69fb81.58a86.e504SMTPIN_ADDED_MISSING@mx.google.com> Date: Mon, 29 Jun 2020 17:02:25 +0200 Message-ID: To: Mark Randall Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000d138b905a93a5a76" Subject: Re: [PHP-DEV] [RFC] Property write visibility From: deleugyn@gmail.com (Deleu) --000000000000d138b905a93a5a76 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable As a user, I would prefer the original proposed syntax `public:private` or the Swift syntax `public private(set)` than the alternative syntax `public int $x {protected set; protected unset;}`. On Mon, Jun 29, 2020 at 4:22 PM Mark Randall wrote: > On 29/06/2020 15:13, Andr=C3=A9 R=C3=B8mcke wrote: > > Would something closer to Swift be better? If so I expanded the RFC wit= h > > that syntax option as well: > > Borrowing from the various accessors RFCs: > > public int $x { > protected set; > protected unset; > } > > Then a future RFC can build upon it by adding the override functions > while keeping the same base syntax. > > Mark Randall > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --=20 Marco Aur=C3=A9lio Deleu --000000000000d138b905a93a5a76--