Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110784 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 35983 invoked from network); 29 Jun 2020 17:33:14 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Jun 2020 17:33:14 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0559A1804CB for ; Mon, 29 Jun 2020 09:21: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_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-f178.google.com (mail-il1-f178.google.com [209.85.166.178]) (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 09:21:57 -0700 (PDT) Received: by mail-il1-f178.google.com with SMTP id r12so7771542ilh.4 for ; Mon, 29 Jun 2020 09:21: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=2adm4Nc59BVn9GF+5lWRcroqMoZtX5P7Km0w6z9YTro=; b=Aij0N4h2C5xeK+9S1aEkMNa3csCHonTUBINVZljcA23KJz2gGLY+GQvBFB7t8jA7UA QMbrvUhoOGAFXm1UVcmAsdt2ZX2YrFdH7L0Zrx5db72nIkXeu5yrMCX7IFCV/DZ3HbN5 FBTwNGMa24D5TEY50Y7YGWsPWkHjuEPqWHnTGwMHSuS6FYVCWDU+W/6tor31fDQhURP0 CVkhQ5Q4lEKQCN5eXQF6jz/UR/E44V5wCDH//rDV9Y7A66PLGsVB1E10boprNAN/KnVf /mNqhXuk0RT/yt9uH2HuMlNldXMxXyXCC+A7OklyYyiFasPnp5n6OuSpP5IZArGtLq5T k13Q== 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=2adm4Nc59BVn9GF+5lWRcroqMoZtX5P7Km0w6z9YTro=; b=HCkUozoUznJ9cOQLbTV31iZGYWyyM1fcpCEyOJ/4uxHwOp9LTdqI8zEX33kFOF4Ddn 4zOd1aeJwsxvsIsC1scxoaCfqMWyY2Zd2A1nXyKmpmuNoTu+BD/tnthDIcaQjFwVErS8 ODBN1mAONzWdvogTOmH4NJFFz6vo8yUspkUhzaLeTvY3yUUJBA2igUx2yxI+JXbrToNH NAh/Fa4FhubP10fICQQ6g0b0rGE6icT377dNYNC1auWM+1Xku7obvUEz+Rxtt8sKgSer VO+ctTSie8ONWSosPK35qhGjra9U/KYf+iUvYJltCvyysxUX0r7fcqWFEykM7cImBhn7 9R1g== X-Gm-Message-State: AOAM532Jp+OiqBv/mstZFpyrmXKwIKt8Ettlpcbz096OilYGrEcTIv8j rXoQKLnsYUoHFU/Nh0QzMEyRAyF33ueLLUVyE/AvwzjsoM0= X-Google-Smtp-Source: ABdhPJwW6r4V7mnKF24/0vnhaXqUVMAmJP6eBfD56y2RdaRFcBPbs77h9toHr6ew3Yq2aiaC5PkaSv8yf2z/RkYCHbw= X-Received: by 2002:a92:d811:: with SMTP id y17mr15390883ilm.35.1593447714709; Mon, 29 Jun 2020 09:21:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 29 Jun 2020 18:21:42 +0200 Message-ID: To: Rowan Tommins Cc: PHP Internals List Content-Type: multipart/alternative; boundary="00000000000000e6fb05a93b757c" Subject: Re: [PHP-DEV] [RFC] Property write visibility From: ocramius@gmail.com (Marco Pivetta) --00000000000000e6fb05a93b757c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey Rowan, On Mon, Jun 29, 2020, 18:19 Rowan Tommins wrote: > On Mon, 29 Jun 2020 at 16:44, Marco Pivetta wrote: > > > property accessors seem to perpetuate the bad practice > > of getters and setters > > > > > Outside of access restrictions, a common use case I've seen for property > accessors is lazy-loading, which I know is something you use in other > forms. > I had already tested the write-once properties RFC with lazy-loading: works just fine =F0=9F=91=8D > --00000000000000e6fb05a93b757c--