Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114265 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 58057 invoked from network); 4 May 2021 10:36:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 May 2021 10:36:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8CA981804C8 for ; Tue, 4 May 2021 03:42:58 -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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.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, 4 May 2021 03:42:57 -0700 (PDT) Received: by mail-ot1-f46.google.com with SMTP id c8-20020a9d78480000b0290289e9d1b7bcso7791800otm.4 for ; Tue, 04 May 2021 03:42:57 -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=tbCVgL7s2v5vgF8dxT50j4U3/fOHVPpb+RBewJqKYWA=; b=Z15PygLrDFvIinXaLbfy20lC8PKEBOmLWCHopl1W7N1Oc5bWrdj6s3WKzEg6i5pGom Z52iCNo+f0GUUIaubK9ph+cFN+nn2b6wLUsxFs6UYImJeVTN+rlckuYzmicL8TOpyCly TpWvgKSOq1FqXlqxrARyWFsMaFLG/H5Evgni7GyO7eJ9me0n4Qkenhack2H4hOyiVNJA Xdy0ucplSB/Yeqgfj40T3RC9DCHlKu18TUBkPLETW6PUUybdrWp+N6ZRY5ZW4FNWSClx kzkHlCz/bZtnDZLU4s6BYSRKuNm3ukNsx8I951fMRjrO8LTATilpL4spz+4zfH6xfq1s uL5w== 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=tbCVgL7s2v5vgF8dxT50j4U3/fOHVPpb+RBewJqKYWA=; b=HXGE2Vuv//7CHZVesomcUAdLfQ3JmJKXNXhqzWArAgUXO2xDt3DJkiOnX4oNYGm/gG Ny7lVmzS5/eROimNZMbgcnyhYyTHjy8uo2HbqHGdSdvEHOLFOQ+lq9UxG6R1TMROk2wo 7qjrk+ENswqMJhs6Ok9UdN64OA6L3n8uWXQw1zWYvi6l+iFflBnb4Ev2hCnmdGc3im0f 5T0LhwexznFYC/Q8ZeSeogV5jebGwN4rGElSKhNSVWt3KlnDeicplToXRI9OxmfHmagz I4oAOZU5wgtv03Xnbbxml2jxh77NXaxOW/JZE778Mq9b10VeUOmmhNwxW0T6aMp59n4V 8wxg== X-Gm-Message-State: AOAM533dXWi/4L/FAJaWQDB/WR6c0mDYtm/FVKn4FoUcrUMIyI0X/dzg HpFDHIENdjOImWawPVxVIL4Jcsklzdm89FUA0Vk= X-Google-Smtp-Source: ABdhPJz//zlHlWA9KqBQogK75p/AuO1n/872H5aVkYaki/5hImVPvU0f9VNioO7pHBMbjznEQAMliCsb5oSH2BIB6f8= X-Received: by 2002:a9d:39e3:: with SMTP id y90mr19036484otb.257.1620124975828; Tue, 04 May 2021 03:42:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 4 May 2021 12:42:45 +0200 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000ad12b105c17ebdb7" Subject: Re: [PHP-DEV] [RFC] Property accessors From: krakjoe@gmail.com (Joe Watkins) --000000000000ad12b105c17ebdb7 Content-Type: text/plain; charset="UTF-8" I haven't read it properly yet (been watching a little), but I just wanted to say thanks for the refreshing honesty :) Cheers Joe On Tue, 4 May 2021 at 12:34, Nikita Popov wrote: > Hi internals, > > I'd like to present an RFC for property accessors: > https://wiki.php.net/rfc/property_accessors > > Property accessors are like __get() and __set(), but for a single property. > They also support read-only properties and properties with asymmetric > visibility (public read, private write) as a side-effect. > > The proposal is modeled after C#-style accessors (also used by Swift), and > syntactically similar to the previous > https://wiki.php.net/rfc/propertygetsetsyntax-v1.2 proposal. > > While I put a lot of effort into both the proposal and the implementation, > I've grown increasingly uncertain that this is the right direction for us > to take. The proposal turned out to be significantly more complex than I > originally anticipated (despite reducing the scope to only "get" and "set" > accessors), and I'm sure there are some interactions I still haven't > accounted for. I'm not convinced the value justifies the complexity. > > So, while I'm putting this up for discussion, it may be that I will not > pursue landing it. I think a lot of the practical value of this accessors > proposal would be captured by support for read-only (and/or private-write) > properties. This has been discussed (and declined) in the past, but > probably should be revisited. > > Regards, > Nikita > --000000000000ad12b105c17ebdb7--