Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110613 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 39813 invoked from network); 17 Jun 2020 01:59:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Jun 2020 01:59:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2B4821804C8 for ; Tue, 16 Jun 2020 17:44:35 -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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) (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, 16 Jun 2020 17:44:34 -0700 (PDT) Received: by mail-io1-f46.google.com with SMTP id o5so721446iow.8 for ; Tue, 16 Jun 2020 17:44:34 -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=dYZbpmaTe8rkmCsbUzeG57RwyDIBtsL7iwzVx3dz1ic=; b=eFCtTLO1Nmwuy8H74+Z8ch3keQvs8mLLL9P33Ui1sKbV7o1Ym2h59UWy62A1xSGpTm kKvmTTpq+ZfSroqh2hhmJRD41RTcy17Xu/jes8t62u8U7QgxiBrrgu3FFArv/jUxNLHX p4TTVb+tYWaZGg7Whyx+dqfUeMEiJG1Mw1o2CAThr4e/Pmvo67Q/YOmABdBAavXnCViB eWUD0hiOu3WcYmYeW65WRGSmJmly3F81f8kB0KeCQInl0CgA6R2zXqcgMGBGrzRS5lmx zsdrBraSiV6/bSDYKg1TEsLau7TJ2TFyJQCX1fGIEObe7VU0jHwUj2gYhM2ZfqulXNuS QCsA== 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=dYZbpmaTe8rkmCsbUzeG57RwyDIBtsL7iwzVx3dz1ic=; b=Pua/j86J87PRr4HtcNgA17A+YJBoaimk9j/AmwC8E98tOadgKMQSQa+eVvDB+3Fs51 ibmTjFCMSwv1SsykRSxmpDYmr5L2scjraogo1JUo8HYErP9OmADZ/T9t//LUOqscjAJ/ coD/j/rhFLYiMcJSlCw/Oe8WvcasjynSXRvxa/SL5UXe486qacQW+Lwda2fTt8gZkXBi 35tvQV/t9+jJ4cZ5XyUlbhk8v/zTbW8nJOfQn63oU3Y9kaCMCeSJllwwgUVgKuyatTla Doo1YKUcApJyYOeZGJwVKhjLxVNC2BvOFpVHX2F6e7yqVzFyCrSCxfmUbTh7I8o37hIB c+yA== X-Gm-Message-State: AOAM530WS8GksdGgNPyn+F0iBpj5XFRc+eauzNy8uUCPw//U1ldwItaY TuJKbsXE9LlD5CtsLqixKVviDxlHwteJISoht9o= X-Google-Smtp-Source: ABdhPJyTtgVTAJszx7m0t7SshurxCsZxgRk6gcXtY/oHedps7xKj7fk0Uou8nKAedwIoXrZqKPr/qOh5DJZsOPhqV5U= X-Received: by 2002:a6b:1448:: with SMTP id 69mr5350786iou.83.1592354674094; Tue, 16 Jun 2020 17:44:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 17 Jun 2020 03:44:21 +0300 Message-ID: To: Benas IML Cc: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000b4b4e305a83cf6e3" Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Make constructors and destructors return void From: drealecs@gmail.com (=?UTF-8?Q?Alexandru_P=C4=83tr=C4=83nescu?=) --000000000000b4b4e305a83cf6e3 Content-Type: text/plain; charset="UTF-8" Hi Benas, This looks good to me. Can you do a research on top 1k-2k most used composer packages and verify how small the BC break it is? Also, a suggestion on how to fix the BC issue if it exists could be mentioned I guess. Thank you, Aled On Wed, Jun 17, 2020, 02:11 Benas IML wrote: > Hey internals, > > This is a completely refined, follow-up RFC to my original RFC. Based on > the > feedback I have received, this PR implements full validation and implicitly > enforces `void` rules on constructors/destructors while also allowing to > declare an **optional** explicit `void` return type. Note, that there is a > small but justifiable BC break (as stated by the RFC). > > RFC: https://wiki.php.net/rfc/make_ctor_ret_void > > Best regards, > Benas Seliuginas > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --000000000000b4b4e305a83cf6e3--