Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111944 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 65283 invoked from network); 28 Sep 2020 13:13:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Sep 2020 13:13:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A3C77180511 for ; Mon, 28 Sep 2020 05:25:04 -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-oo1-f46.google.com (mail-oo1-f46.google.com [209.85.161.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 ; Mon, 28 Sep 2020 05:25:04 -0700 (PDT) Received: by mail-oo1-f46.google.com with SMTP id r4so245884ooq.7 for ; Mon, 28 Sep 2020 05:25:04 -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=xdBcy7m3onyo8rAZOuI68G/JhNZ3OJY+usKshDtoTjU=; b=Ko7t3sXQbSNUOTC2dhKk2WazbTKobGYtBLZag5oeG43pNpj7fNHRUd1zy4aXYwgCcP FMUyFZ1bIcQSMG34XtJl9FcsCR0hzzvigFEF/qDxfZTSNxSwLR50EAcu4V/mzb9bPLO2 2eYYV5VLGrYx2iY0PwJCyVz1WDGHdc0Lzj3EhiBx6bxsntdjVgN4HCdUkonuySffJCjm MdfGfD18FqYJ2b/gDKyjzi8QkUKv0YWbH+vQD2I0qxDtUZv8T8T97L5B5UwFY46lCK3w 6/IlR8JV2d+/GyF40SANS9C2YdGFm28ljbGRKPjzsGgJcGtecH0xbWXfQbDDCvK2p8KW EaYg== 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=xdBcy7m3onyo8rAZOuI68G/JhNZ3OJY+usKshDtoTjU=; b=ofu81UD0fMgnlV3RQddz5NUTjV2eFAezL1NxIZ1qqYA1zWqk1lwWs3OqT3JRXZI//l klM89ZnEMlmuCHpn5Jx3WHsL1fPBZU+74N91K7KG9Fkc6CGR4uEYevNxLvjzWoeGaE/N b11UtTZd0/Xg5kVv9ihVFYe7aUt7Ou83VaPcO+gkCnHFa2M8XW5RDxYk8nydRWj8h8wk a6HedYrag8hbIr4GrTm/DaeORcNpaP00CJHi79BGjTYdMhOY/ALVTFjO6vrjliTZgfYf lL4EybQmfH7/+jFd3jMpGpDrC9GO9Z487S1TfPvD+g3DPxC5Yaj6T9Kni+cjsH7Lqy0J rqMA== X-Gm-Message-State: AOAM530M95IA0pzHukq4mEomPtXdMRxwViAfOUclsT3Ob0wYabwI9Fml ZSKi3Lo2p38TaSYdythhu1JEmVAll02NJMumVSs= X-Google-Smtp-Source: ABdhPJxWogfrz8+mbaykB07rj714siWfWO/vyOMIoYhEXr/iNNsw4rjp4Srw08cKaUdJmqqWoaHvY7K6BtaKLKbwjvQ= X-Received: by 2002:a4a:d38c:: with SMTP id i12mr627828oos.81.1601295900313; Mon, 28 Sep 2020 05:25:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 28 Sep 2020 14:24:49 +0200 Message-ID: To: Benjamin Eberlei Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="000000000000518bb305b05ec1bf" Subject: Re: [PHP-DEV] Re: Attributes and constructor property promotion From: benjamin.morel@gmail.com (Benjamin Morel) --000000000000518bb305b05ec1bf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 28 Sep 2020 at 13:56, Benjamin Eberlei wrote: > imho, we should pick the 80% use-case and advise to desugar the code if > other behavior is desired. For me the 80% case is that the attribute only > applies to the property, not to the parameter. +1 for the desugaring advice in this case, however as a matter of consistency I'd rather have it either apply to both the property and the parameter, or just throw an exception if used on promoted properties, whatever the 80% use-case is (source?) Kind regards, =E2=80=94 Benjamin --000000000000518bb305b05ec1bf--