Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114397 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 69837 invoked from network); 11 May 2021 14:59:18 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 May 2021 14:59:18 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3ADAE180531 for ; Tue, 11 May 2021 08:07:07 -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.5 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from processus.org (ns366368.ip-94-23-14.eu [94.23.14.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 11 May 2021 08:07:06 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by processus.org (Postfix) with ESMTPA id 71FEA5101324 for ; Tue, 11 May 2021 15:07:05 +0000 (UTC) To: internals@lists.php.net References: <1620635361.9147.0@gmail.com> <973730f8-1c9c-4208-b1fa-5f1048f6d6cf@www.fastmail.com> Message-ID: <1ebf8a93-b116-f941-151b-893ddcad72e4@processus.org> Date: Tue, 11 May 2021 17:07:04 +0200 MIME-Version: 1.0 In-Reply-To: <973730f8-1c9c-4208-b1fa-5f1048f6d6cf@www.fastmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Authentication-Results: processus.org; auth=pass smtp.auth=pierre-php@processus.org smtp.mailfrom=pierre-php@processus.org X-Spamd-Bar: / Subject: Re: [PHP-DEV] [RFC][Draft] Body-less __construct From: pierre-php@processus.org (Pierre) Le 10/05/2021 à 18:58, Larry Garfield a écrit : > I agree that in the grand scheme of things this would be a minor matter, but aesthetically I would prefer it as well. The {} annoys me, CS tools or no. > > Related: I feel the same way about empty-classes and interfaces, which is often the case for exceptions where all you're doing is declaring a type. I figure that would get even more pushback, though. :-) > > As a data point, you can already do the same "semi-colon for no body" for foreach, for, and while loops. I've only ever done it on foreach to runout an iterator, but it works on all three today. > > --Larry Garfield I didn't saw this answer at first, but I agree that: ``` interface MyLibraryException; class DefaultMyLibraryException extends \RuntimeException implements MyLibraryException; ``` Is an excellent use case for this! Regards, Pierre