Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114388 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 56510 invoked from network); 11 May 2021 14:32:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 May 2021 14:32:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C390C18050A for ; Tue, 11 May 2021 07:39:52 -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-Virus: No X-Envelope-From: Received: from mail-ua1-f42.google.com (mail-ua1-f42.google.com [209.85.222.42]) (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:39:52 -0700 (PDT) Received: by mail-ua1-f42.google.com with SMTP id g24so6406542uak.11 for ; Tue, 11 May 2021 07:39:52 -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=CtKGcd699BWYJCbb4Y9cPNGCcDROrQeObfCXRpFWJDI=; b=O9R6S1JpAiiYwb0BspzXhIro18vtvlRK0aNko66sLdpYprp4ZbKAsCgkqVQZL8fKvJ 0L6YLVpn3JwcCgjPubn3jXkrM6prklsV+3ixzhQvoRUXSWM229C1S4nd7B6gKaoCxGr+ zfG/28WNoYzL/duB5zeBMxq9uc+CdfzyF3xUHGoh7FQVnKHhE9sFdEb4VHTYY7r2IEjx LrlKsMhNqG1VBw4+Gq2AG576vti+yYPmeVsG4/7A9atOMQPIVf0sZ7L0PFaR6ji8vtK3 eX99E8Fo7HCmjz6kPuuVtv7jjhYx5T7QdPnUsCAixicRXbBIFRpPoAWtQAfbM4lLQeCK UQGw== 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=CtKGcd699BWYJCbb4Y9cPNGCcDROrQeObfCXRpFWJDI=; b=LZgt36vdfKAEyuvJNvJOQl+RHHHK1+xTWnUVsTGK8CR6XNGMwDwNDyhtk5VW8MP0BI aMsIU8yQXRbRi1l++60ttgL5Nn6VoO6F/5284RNimpmvSVrSNa+F+FLeSaiZcnKmDO70 9LPK/fc3VxL1KElVdrkf+c7kb0ae4cMPazZwc4YxbdZ6ZTLS/yg282AZhMfzSHhGl0i9 jVh+50vJa7T3F6UJFFXMdm3oBWv6mLZRmKgww9YKx91Qx8PapnZi3life05H0fEECKaY Wk8H1aU79r3qZwk0022/ElZUSeT691mFTarJEI4O91ZnHC/ejzvkfpAPjFpNM+gF7Oxx /VTA== X-Gm-Message-State: AOAM532SUYYwQuhfi930xbQ6bsqFtqThpdNwBi+79fBTaP4YT7mswMT/ 8AGJ13KLPNs+IpVOrvG9GaW7M9799XhVQrpOJvPdIzMZlPc= X-Google-Smtp-Source: ABdhPJzjFaMFhqLu67zsb4ju9/iRLdeiohajmCOkBZdqaSWUbvO4QwSrmofx26jBuVR3GB2D3SKxneyUq1ughJVyd3c= X-Received: by 2002:ab0:389a:: with SMTP id z26mr15851460uav.119.1620743990863; Tue, 11 May 2021 07:39:50 -0700 (PDT) MIME-Version: 1.0 References: <1620635361.9147.0@gmail.com> <1620728274.110454.3@gmail.com> In-Reply-To: Date: Tue, 11 May 2021 10:39:39 -0400 Message-ID: To: Sara Golemon Cc: =?UTF-8?Q?Mat=C4=ABss_Treinis?= , Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="000000000000d8ea7205c20eddf1" Subject: Re: [PHP-DEV] [RFC][Draft] Body-less __construct From: chasepeeler@gmail.com (Chase Peeler) --000000000000d8ea7205c20eddf1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 11, 2021 at 10:34 AM 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 w= ay > 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, th= en > 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). > > > I agree. I think making things inconsistent between constructors and other methods is something that can be lived with - there are already other things special about constructors that don't apply to other methods - but we should at least allow consistency among constructors and allow the trailing semicolon in all cases. > > 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 happe= n, > 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 --000000000000d8ea7205c20eddf1--