Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114393 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 63450 invoked from network); 11 May 2021 14:40:41 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 May 2021 14:40:41 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 009CC1804CC for ; Tue, 11 May 2021 07:48:29 -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-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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:48:28 -0700 (PDT) Received: by mail-wm1-f45.google.com with SMTP id o127so11279046wmo.4 for ; Tue, 11 May 2021 07:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:message-id:in-reply-to:references :mime-version; bh=XkpwLn7gNj72KD6E8Q4qRpl+Lb+M+wpQx92Aooa+/Kk=; b=R9XGNm82N/EKfMDw4hRZOB3Zj6nyy9dXAXrlvxqhwMX/nuQpxVPDgpHd0nFQalzQUV V2/WquiTymTbbWaXvdTyxaG0WMy5BhOWkxPlJ8/0C1ZHIbVk5GTDSdE8SeYRIr8vGf0H I8f/iV3ugrSX41xJITtfagGiNnJeHLzT8N0ASEJAWkQkE9zX9dvQpUXbwbvfyW3iuK+O oC9f3a7BXg432ue0r4vAyVVHuNwJza430na5gyb/FipyfhglBrKDfy6f/lgV8miODJ0q APaEMj70HlRDIdgml53yFogkryRNi+F5kmbdP2j1rEOJ65SPSAEZ5/QQcyFH4KrXWOf5 g6Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:message-id:in-reply-to :references:mime-version; bh=XkpwLn7gNj72KD6E8Q4qRpl+Lb+M+wpQx92Aooa+/Kk=; b=mrgaT9kzNxljUzlk5+YWCFxEEXUZeyS8NIJD+wE/K0b3uv3eTuteb+C7YvJUePxtzA U5kEg1xDglZp5ZTjge3ol6Kpgaob2aM7umJZm3BYBEf1Vwvb4Fi1XcKc7D2aYU7jnAAo Rd3sSjjn/r4Zw/nFjGtfDkhYFs9gSskvrOUv5pdKItEjnDGQ/hYQnwHEzyestpgJ8E/F zCUgSMawRx85QsH9LgqN/ZQn0o7PfMdYmB/UJ3t8dxs0Qmc6VocwDcfTPFgapwA+p4sc LwtpXpqjcPNDSoM51kt97U3pKjavbYlCL8WMeHuKFaN2EZ/I6fkcIztTvJw0OTGYGOtx iM3w== X-Gm-Message-State: AOAM533UiRYbk8ERAtOYCPGShucE69lspCnvYRLNuhS22QiKhJ/e8ofy DcTm2EMKLFsgeyc+Qy70skovsNe3xaBCkA== X-Google-Smtp-Source: ABdhPJwvFHYuXYjGHX9Wfxw7hBk6I7zSJYtPuG5XbbFfmsoGiphOY0j2amORxCpMoFG5UchLNUojIw== X-Received: by 2002:a05:600c:4f04:: with SMTP id l4mr32816507wmq.18.1620744505518; Tue, 11 May 2021 07:48:25 -0700 (PDT) Received: from [10.15.1.244] (36.49.14.37.dynamic.jazztel.es. [37.14.49.36]) by smtp.gmail.com with ESMTPSA id r13sm29276383wrn.2.2021.05.11.07.48.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 07:48:25 -0700 (PDT) Date: Tue, 11 May 2021 16:48:23 +0200 To: Sara Golemon Cc: Nikita Popov , PHP internals Message-ID: <1620744503.110454.6@gmail.com> In-Reply-To: References: <1620635361.9147.0@gmail.com> <1620728274.110454.3@gmail.com> X-Mailer: geary/3.34.1 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-tzcCO5qMzUOeG/GTTyel" Subject: Re: [PHP-DEV] [RFC][Draft] Body-less __construct From: mrtreinis@gmail.com (=?UTF-8?b?TWF0xKtzcw==?= Treinis) --=-tzcCO5qMzUOeG/GTTyel Content-Type: text/plain; charset=iso-8859-4; format=flowed Content-Transfer-Encoding: quoted-printable Hi Sara, > While it's certainly silly/pointless to have a nil constructor when=20 there are non-promoted args present, I think that deliberately making=20 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?=20 Am I reading this right? - Mat=EFss On Tue, May 11, 2021 at 09:33, Sara Golemon wrote: > On Tue, May 11, 2021 at 5:18 AM Mat=EFss Treinis > wrote: > > Yes, just to clarify the scope of my initial proposal, this should=20 > only > > ever apply to promoted constructors that have 1 or more promoted > > parameters, and no not-promoted parameters. > > >=20 > Hard disagree. While it's certainly silly/pointless to have a nil=20 > constructor when there are non-promoted args present, I think that=20 > deliberately making that mode special (read: inconsistent) is the=20 > wrong way to go. >=20 > > These would NOT be considered valid: > > public function __construct(); > > >=20 > For example, Niki's reply showed a place where that mode is perfectly=20 > reasonable (singleton finals). If you must have this syntactic=20 > sugar, then please make it consistent. >=20 > > as well as anything not related to __construct. > > >=20 > I'd be willing to go along with inconsistency since once you allow=20 > syntax you can't unallow it without pain. So while I don't love the=20 > tack, I'll follow it if we do this feature. (which IMO we shouldn't). >=20 >=20 >=20 > On Tue, May 11, 2021 at 8:59 AM Mat=EFss Treinis > wrote: > > If there are no super strong arguments on why this should not=20 > happen or go > > to RFC, I will draft a RFC and from there, the usual process=20 > applies. > > >=20 > I think you've heard a number of strong arguments why it should not=20 > happen, but I also think this deserves its chance to be fleshed out=20 > and voted on, so by all means, do work the RFC. >=20 > -Sara = --=-tzcCO5qMzUOeG/GTTyel--