Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114394 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 64863 invoked from network); 11 May 2021 14:42:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 May 2021 14:42:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E601E180532 for ; Tue, 11 May 2021 07:50:20 -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=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLY, 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-Virus: No X-Envelope-From: Received: from mail-vk1-f173.google.com (mail-vk1-f173.google.com [209.85.221.173]) (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, 11 May 2021 07:50:20 -0700 (PDT) Received: by mail-vk1-f173.google.com with SMTP id l124so4032554vkh.7 for ; Tue, 11 May 2021 07:50:20 -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=CRm6W2wBxAKeknTX7P+BxCrC9vIsrPiFhDIQ4W2u5Xc=; b=EwuBIDtl1P6YMwo+FMsuzUvKy1Mii6PV77YskaS7fHFzxyvtZOlCr894qLYPUqdwZk p6jjaDb1rroFU7ayT1VI4RMIdNx+DM+Ur9lpQn0l+he9gU6MF9p6mLFbeR7bVfTUhiXd rUamjqqK6ml4RXridr7FQDqVu7uCDAoR9Mz1Tm26YgmlevvgBGMLIhDmx8sVhDRKlASF 3qughWFjC4H/8NZiCooJ5MkLbH3G8i0IuCW9GwnT5vcDWc0dZTPlZaAsPcC0iDN0YYw+ tUs1XND+HQTpWBTd/SI0wXjmsm7mUcinoehGINAVSJbSc/R5usyepYLKOcHOYKBHFwNK 9nEg== 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=CRm6W2wBxAKeknTX7P+BxCrC9vIsrPiFhDIQ4W2u5Xc=; b=uOADQhsuDmIOmR5i7zwyQmzTCmP+0CB7GiLA8Dydii/tMeJby+eyIRRt2cZR/UlPXR ctbQgU1ZSIStu8zbgEGsRFQuAIBF3rl6E+cira9QYr2vT46jKiM7+kYQGjAmAR9ttrov 9Dbg76AG8Xw1JfqVfH1ckm/ieFOiKD5BxriS6U5jcIn4SMDCCD5jFLOr0PAodFNKuqDS x0MYkbncNVhdphfiYLtwR76lqXHqYJ+KoiHv/Nk77JVQp44lV5gngOdp7mei9yog0wu5 qd/yrOw7smcnguJIn/eoQ1LB0x5BtQZbYbHRX3eIt769V6IvJ/+u93lqHyMhWzUijWxQ c3cA== X-Gm-Message-State: AOAM531+kFRnxBJjettuN1/QztN92A3dQA63lpMjl9jLzYn/pgBGK1IV /RKqib1FFMSMpHlk4USzSeXW6wfV89+w9PFTFPs= X-Google-Smtp-Source: ABdhPJwQl1N9KNVDQ844czGA2Nr0hnK3BSI2eo5K+6u8b3QFnNGz5CqlkpxRSTQubsW+3zXrexC7wj5BQOwIYhVO/Uw= X-Received: by 2002:a1f:9907:: with SMTP id b7mr22687069vke.24.1620744619963; Tue, 11 May 2021 07:50:19 -0700 (PDT) MIME-Version: 1.0 References: <1620635361.9147.0@gmail.com> <1620728274.110454.3@gmail.com> <1620744503.110454.6@gmail.com> In-Reply-To: <1620744503.110454.6@gmail.com> Date: Tue, 11 May 2021 10:50:08 -0400 Message-ID: To: =?UTF-8?Q?Mat=C4=ABss_Treinis?= Cc: Sara Golemon , Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="00000000000058385805c20f03bb" Subject: Re: [PHP-DEV] [RFC][Draft] Body-less __construct From: chasepeeler@gmail.com (Chase Peeler) --00000000000058385805c20f03bb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 11, 2021 at 10:48 AM Mat=C4=ABss Treinis = wrote: > Hi Sara, > > > While it's certainly silly/pointless to have a nil constructor when > there are non-promoted args present, I think that deliberately making > that mode special (read: inconsistent) is the wrong way to go. > > Sorry, but I don't follow - so you would prefer that this: > > public function __construct(); > > be valid syntax as well, considering within the scope of the proposed? > Am I reading this right? > > Yes. It might be silly and pointless, but, it doesn't have any negative side effects, so why not? > - Mat=C4=ABss > > On Tue, May 11, 2021 at 09:33, Sara Golemon wrote: > > On Tue, May 11, 2021 at 5:18 AM Mat=C4=ABss Treinis > > wrote: > > > Yes, just to clarify the scope of my initial proposal, this should > > only > > > ever apply to promoted constructors that have 1 or more promoted > > > parameters, and no not-promoted parameters. > > > > > > > Hard disagree. While it's certainly silly/pointless to have a nil > > constructor when there are non-promoted args present, I think that > > deliberately making that mode special (read: inconsistent) is the > > wrong way to go. > > > > > These would NOT be considered valid: > > > public function __construct(); > > > > > > > For example, Niki's reply showed a place where that mode is perfectly > > reasonable (singleton finals). If you must have this syntactic > > sugar, then please make it consistent. > > > > > as well as anything not related to __construct. > > > > > > > I'd be willing to go along with inconsistency since once you allow > > syntax you can't unallow it without pain. So while I don't love the > > tack, I'll follow it if we do this feature. (which IMO we shouldn't). > > > > > > > > On Tue, May 11, 2021 at 8:59 AM Mat=C4=ABss Treinis > > wrote: > > > If there are no super strong arguments on why this should not > > happen or go > > > to RFC, I will draft a RFC and from there, the usual process > > applies. > > > > > > > I think you've heard a number of strong arguments why it should not > > happen, but I also think this deserves its chance to be fleshed out > > and voted on, so by all means, do work the RFC. > > > > -Sara > > --=20 Chase Peeler chasepeeler@gmail.com --00000000000058385805c20f03bb--