Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114387 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 55099 invoked from network); 11 May 2021 14:29:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 May 2021 14:29:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1A1891804E3 for ; Tue, 11 May 2021 07:37:16 -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,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from smtp-in.fusiondirectory.org (smtp-in.geekview.be [195.154.20.156]) (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:37:15 -0700 (PDT) Received: from smtp-in.fusiondirectory.org (localhost.localdomain [127.0.0.1]) by smtp-in.fusiondirectory.org (Proxmox) with ESMTP id 5B58210158F for ; Tue, 11 May 2021 16:37:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= fusiondirectory.org; h=cc:content-transfer-encoding:content-type :content-type:date:from:from:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fusiondirectory; bh=uxBoXwDJW0L7Lwse1og3Sj5plMF6NocC7hPAI9gm0b8=; b=LX1ryjB81oZf cxLi1YSA4TDATf2MFcwM3lW3yDniCITsJHyAFcOwUzmNsP30SEEg4WQDs9m7BUJf 0MuYQ/S6iaEr3fV9amhXQoTHIW9vbptVp0kVrURFpRuQ1NYVY9+xx+UwGr0imvD/ VC+HkX1jQELnvltavWClNnvMzR8FMxbweYVQwxk0U66MD2gvelpEDCKuTsM0AICe 65P5JQmmSrrW4W2Rc0rK9Hu2fvCrndyfhzEq7WG+rqVOZngfdua1zAe0cS8lEMZY z+r4ff4uW2nx7mxrRBThUwLF++fMnLJ8Twl8kqnZjKxhWC5v8LyrDUsTFRlU43j7 gTmNXeUS1g== Received: from smtp.fusiondirectory.org (smtp.geekview.be [195.154.20.141]) by smtp-in.fusiondirectory.org (Proxmox) with ESMTP id 398D3101164 for ; Tue, 11 May 2021 16:37:13 +0200 (CEST) Received: from mcmic-probook.opensides.be (63.120.199.77.rev.sfr.net [77.199.120.63]) by smtp.fusiondirectory.org (Postfix) with ESMTPSA id EEBDA25CB72 for ; Tue, 11 May 2021 16:37:12 +0200 (CEST) Date: Tue, 11 May 2021 16:37:11 +0200 To: internals@lists.php.net Message-ID: <20210511163711.122e46c1@mcmic-probook.opensides.be> In-Reply-To: References: <1620635361.9147.0@gmail.com> Organization: FusionDirectory X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC][Draft] Body-less __construct From: come.chilliet@fusiondirectory.org (=?UTF-8?B?Q8O0bWU=?= Chilliet) Le Tue, 11 May 2021 10:58:57 +0200, Nikita Popov a =C3=A9crit : > If we allow it, I would restrict it to specifically the case of a) a > promoted constructor b) which has *only* promoted parameters. I don't thi= nk > we should allow replacing "{}" with ";" for methods in the general case. This would create a subtle difference of allowed syntax between a construct= or and an other method, and between a constructor with promoted parameters and without. I think we should avoid this. I even thought we merged changes to make constructors more like the other methods, but I just checked and it seems the RFCs to allow ": void" on constructors were declined. C=C3=B4me