Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114374 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 24037 invoked from network); 11 May 2021 11:17:03 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 May 2021 11:17:03 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0F3C01804B5 for ; Tue, 11 May 2021 04:24:49 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,MISSING_HEADERS, 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-il1-f181.google.com (mail-il1-f181.google.com [209.85.166.181]) (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 04:24:45 -0700 (PDT) Received: by mail-il1-f181.google.com with SMTP id m7so7483921ilg.9 for ; Tue, 11 May 2021 04:24:45 -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:cc; bh=qAVSN2U2PdDNX6KPAnh35WVlsILvO9P573jZcIrFQ4g=; b=nnxPpu5KwMQUehtigaeWPOCER+TCGKS/NJcnspVSJg/8wfnElW26Yejj19I3EoKCJv 3RVpqRwKtn4MNTjF+ZEVBKvrqWbBlJm6IsmzN98LZHyRqcikseZzq0z0MG2sdOe0Fae4 DzUxrqYTyVlb07jT5ArZAqBON93U6x7auOeLYCZxNl6pwn4ij2StsI9kbTO8F48uUpVX /jLWUuiy3/MepxhrZZoOcBlI1nzS87huIckJ3ZBqlk9F4XCTyzUWBrtjezx3JIUMIN1O j0qkf0M0r7OiPARqkHQ3KELmQdJ5XZ323yz6+rpbRKg+AY0JAH6S5Ul34Lcf8HIrsSk4 NA0Q== 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:cc; bh=qAVSN2U2PdDNX6KPAnh35WVlsILvO9P573jZcIrFQ4g=; b=r4ABFwd94vhvC63y7RWeT27lI6MbSQDYsaA82SOvkerKuHkB7LNYUoax8IjQsulZ3K 4v2jfXW5ahUtGLbCV752GPeXq1Cy/vhaRqYgAiGJ5B/hCGZ3YAGfCrham8wuICzPQfqM XowXu15qazb6F0YsaTppypP4fR6mxYwFO2KPGD8iohZKOs9OHrrK0fm7L8eFo8+79daC 9yr3yuzKwQCDen6XaRkmuFPcyf4CDj0iaVRcob+/LkmaIAAxSBsXkSd/ybuKsI91OeLV TbwhvvDrYM62cZRyoJlfspxekG9aao9/Ew1ddbFjPFwQjmPfo+f90GpPtDZDWXFz0tZx hzpQ== X-Gm-Message-State: AOAM530qeiweO2JZHsjinbmi553gPAIsmR8Yf/e5jjOx0JHyAPIxzK3+ AdDzWxmOuQMFVertrdlbIgTUKytbfo6xKUyldBecDxNdYc5M0g== X-Google-Smtp-Source: ABdhPJxm/sYBRYtzN7WFjs4+OI6sPdXQUehDCxzVTRg1WRRI763UQ6YS07RdlBTLlI8juw2Yx9ao8IQXx6FAbl1QQfU= X-Received: by 2002:a05:6e02:d50:: with SMTP id h16mr26236789ilj.127.1620732285040; Tue, 11 May 2021 04:24:45 -0700 (PDT) MIME-Version: 1.0 References: <1620635361.9147.0@gmail.com> In-Reply-To: Date: Tue, 11 May 2021 14:24:18 +0300 Message-ID: Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC][Draft] Body-less __construct From: weirdan@gmail.com (Bruce Weirdan) > 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 think > we should allow replacing "{}" with ";" for methods in the general case. It could also be useful when you want to make sure constructor is *not* defined, e.g. ``` private final function __construct(); ``` (often seen in singleton implementations). -- Best regards, Bruce Weirdan mailto:weirdan@gmail.com