Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114327 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 54154 invoked from network); 10 May 2021 08:47:36 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 May 2021 08:47:36 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A565F1804B5 for ; Mon, 10 May 2021 01:55:05 -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, 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-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (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 ; Mon, 10 May 2021 01:55:05 -0700 (PDT) Received: by mail-yb1-f176.google.com with SMTP id l7so20613595ybf.8 for ; Mon, 10 May 2021 01:55: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 :content-transfer-encoding; bh=+vXaGNLBsx9sYH8qI28TamgWgQjKF9jYrfdLYxY9wJU=; b=UyKD19e/5qv8vzCY4C/kHuqQoJ+te2qPgUi0dAEsALFGUf7SxJc1QpFFg6PuNtKesf S0DUJfe9g3hAo5XwMg03B5RLgt4cr/SPT2tQ7GIGIKDJvn6UzjYyFkvEMJsBlkdP+Fym Y/+RIL4Frp5wGbmQwZdkDpY4/KjsC/YbHqqzWAetF06JdBJz4rB14HSUAn0hAlmlvkYe fnd1RkoNv/zE6EuOBSiTIhdkNyAsFiWNGNOOPdn3XKea7H8Unv8onck6sAYXYjrr3Ril WRzP0UvwKw5YOEI22RbzhJClQLMY7NooQFRsxwzDnw0/Zdm6VIZNV+DcaTzP38/3dEeY Vzhw== 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:content-transfer-encoding; bh=+vXaGNLBsx9sYH8qI28TamgWgQjKF9jYrfdLYxY9wJU=; b=LPChtRwmpaqhM8SOIKZ3ZA7SsED89HUZqrC1IfsElZ14iiuhador+d24WYefaDQRJE QFdX+6d6xvl4jBTow+z4YGsTykPxGAu94z9JD2jmVFn5bs+GQGzQo8B3JUkeUsij6me4 Q1u1M5m4YzNTYs6mnC6tqEEfIBoYkZev478wqc+dtMnf43ypTjVkBVgU/mwHeijPGnqs hL1dijaNs5fwTLTQj2RtRy2mKpa+K87UnrH9E9zjUND/legUY/NMaMRN7SbGwVialSNJ k/M25arPbP3r0UjotLKlMLy4sYgucZ18FJBXba4AQWHtD2P0F7HBK24F7hJOJ2BDhpqD y+zQ== X-Gm-Message-State: AOAM530yv3+r0Z4cPcuN7t+5FjfEIsETKL9nTCVPTHAQXamioJ2Kr51J +Iy9XtlK+2HUHXkkjvVZGn+Zy9KAKj/IDD5PMl5bYUlq X-Google-Smtp-Source: ABdhPJwzrlZeSV9tgYVSUCUbnOdE36brLwEHmD7De9eDu3zze/3rhpT3RvFi2IzlfOqih4eUPA+UguhnJ/f0ordD7Ds= X-Received: by 2002:a5b:8c2:: with SMTP id w2mr17115639ybq.367.1620636901523; Mon, 10 May 2021 01:55:01 -0700 (PDT) MIME-Version: 1.0 References: <1620635361.9147.0@gmail.com> In-Reply-To: Date: Mon, 10 May 2021 10:54:50 +0200 Message-ID: To: PHP Internals List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC][Draft] Body-less __construct From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi internals On Mon, May 10, 2021 at 10:32 AM Marco Pivetta wrote: > > Hey Mat=C4=ABss, > > This already works by replacing `;` with `{}`: https://3v4l.org/tN4HM > > Is the change in AST really necessary, considering that? The root problem is not that {} is significantly worse than ; but it's that some cs tools require obnoxious formatting. ``` class Foo { public function __construct( private Bar $bar, private Baz $baz ) { } } ``` I agree with Marco, it makes more sense to fix the cs guidelines rather than to adjust the language just to work around it. Ilija