Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114400 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 75023 invoked from network); 11 May 2021 15:28:18 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 May 2021 15:28:18 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 684ED180508 for ; Tue, 11 May 2021 08:36:06 -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-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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 08:36:06 -0700 (PDT) Received: by mail-lj1-f177.google.com with SMTP id s25so979492ljo.11 for ; Tue, 11 May 2021 08:36:05 -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=5lxJaLid424voZ2lb1cwMAr7CYZ3trdezpeW6TeTy2A=; b=o35847zE+UeCwiBcEk1+ZSvNsppHGcgRwi5m4m+25e7yB9AA8Sj8BgpPoxuS0fiRnc Ef2m0A6/r0AJpq/37EKuPeLpg+HVHNTEnFXDyj117527vIOM2zoyvi/mypXTkF4VA2WE 2gLCvzOqpAPKjsoxEprBTk0fp+p3IqKOF92UIrpbcO3s/h6RESg+i2rCkTZVd/5c4FgM Cg6QRYmygaNzq5bYFgDUromnKFSvc+dBWcl/fTD4/e2xIXTy/pC3mR20uUxGxhcw+qGc SnF3Wt+5dlRMBb0VDb5dWXAqgm10fU/OY+ZtVVfiDxnLsC3LvRHAiok3YrV8Z/NJgD5j tVwQ== 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=5lxJaLid424voZ2lb1cwMAr7CYZ3trdezpeW6TeTy2A=; b=SUCcSxbE2G3CMoNPOXurPWoraFJ5ds76xx2wR/zCyFpYPqgUweLO2XO2cLDb4bMcKL CzKdGQf4XO+yTsFf7oDDYgaJbRYttqxG6kcLf87+Y7SRQtbjFN3qlaRE2/ZBRdBq7X9r CN0gLmDUiKdieYJcLFfc6ud58wHCInZOkiCceyanpsqxORkXpCMQS9x5Py9aMLf9hRu1 D71CWMx3PzZ0tPu3V4b7Bc2yPCjm61Na9jRCRJYBvd8C6+HiYcznocKFxRoDgidQoEEz GHVSdkaVLeNRNhs6xwYXlbSfciISigwIbRs0ukXKSY2z0Z0XSNU3IJ4r2C8lfV4ZZnKy c5HA== X-Gm-Message-State: AOAM530+cf7ulyR/WrZ/9dNYh2w8hZOa1inoN0WXZbLDGLsfDb9SlxCh 35jpnTeBpDajTwROTIxCf5xjycWVx6YqURB0Wxqto3o= X-Google-Smtp-Source: ABdhPJwPYoqDFp9GtSwfPIDMXMnVG5zyln8lZo3/EbsKvScI0JK2SY09rKTyeXFNw2mX7emCHcrOVs7eOwB83bJA0aU= X-Received: by 2002:a2e:878a:: with SMTP id n10mr3379260lji.472.1620747364488; Tue, 11 May 2021 08:36:04 -0700 (PDT) MIME-Version: 1.0 References: <1620635361.9147.0@gmail.com> <973730f8-1c9c-4208-b1fa-5f1048f6d6cf@www.fastmail.com> <1ebf8a93-b116-f941-151b-893ddcad72e4@processus.org> In-Reply-To: <1ebf8a93-b116-f941-151b-893ddcad72e4@processus.org> Date: Tue, 11 May 2021 17:35:54 +0200 Message-ID: To: Pierre Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000ee57d605c20fa6bc" Subject: Re: [PHP-DEV] [RFC][Draft] Body-less __construct From: guilliam.xavier@gmail.com (Guilliam Xavier) --000000000000ee57d605c20fa6bc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 11, 2021 at 5:07 PM Pierre wrote: > Le 10/05/2021 =C3=A0 18:58, Larry Garfield a =C3=A9crit : > > > 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! > > I'm probably biased by my C++ background but to me this looks like "forward declarations" (i.e. just declares types but doesn't *define* them) :/ Regards, --=20 Guilliam Xavier --000000000000ee57d605c20fa6bc--