Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110826 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 91722 invoked from network); 3 Jul 2020 09:50:20 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Jul 2020 09:50:20 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EB89D1804A7 for ; Fri, 3 Jul 2020 01:39:57 -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-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 ; Fri, 3 Jul 2020 01:39:57 -0700 (PDT) Received: by mail-ej1-f47.google.com with SMTP id n26so19413575ejx.0 for ; Fri, 03 Jul 2020 01:39:57 -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=fEeFpzS5z+ISPsl+j8kEMpbIFTiVtackl9tn7rXWUZI=; b=CMbtFxL0sAR+GQDE3fn6mkfUwDdhhxuH0Q57//lHg4rW/D80EdUDjxjHElBG1s19OH 0QCzT5ds81VC/3SaS4McbpM8X1JLJHBBxXVMspeAQXo6jgLXQuJzxESJvo4q6sMpT12W 1MOabXNcQekBg7LbKfCk7jstFsl2AHnnq/cceR+M1ose6NiaIXkpyI7eSJdHiuXaptcu UOe/hZuRsQow3fvjQFxXx67RNaRkFbFWNix3SsWsnk09QOySWiiO3hWbU74FmcpYCQ8d Sem9cCMOU4MPy/wJXguhgDdg3H9JDT25XozkxjwdF1Hb3PzX+uNQWQ/d3j7KwwpLpPMT uVUQ== 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=fEeFpzS5z+ISPsl+j8kEMpbIFTiVtackl9tn7rXWUZI=; b=FgJJmvhnI8TqYNoqbGEeAzo0fUpe+2+mATTaIfvTA8bRINY7kjRz/ZMJP3/mO6xNL4 PLLYp3rF8kRwkELhuuq6DZuZOvZIdULRFc8muo1udTzCbkReCdVWjjqgj98+3MByS/1j twBNAM55dWtGhQu93YhsQ0kYLVu72EuWcXkdkhJ7zEx3lf8bY19c2wZidLagbwVzfMUt uHH+ZFgL0a8mhpP5DtNYwqJrmWb56ardRzV1ZPQMuM05cR5+DX85HUBlxhR/sfHXZxZS zH5Ba+W6+tqp3ILLSd+x8t61Q1+BBEXQmA2WCXOJPDoecRLHzqq5UPOwk9fctWPQRDTM z6NA== X-Gm-Message-State: AOAM531H2g7eo9/xE7AbvXnGbuQCAJU1m0eiZ8GSdlIiaEDPYn9Vn3pi 24nKsE66LsotWIg6rqO9LA9YYAm2n5SLQHaEVDo= X-Google-Smtp-Source: ABdhPJx7ff1whuyY1d7QFYG1R34knMuhUoLUW+AOG96fucOf9FC/uMvJSm4U+0MduEOrRQeBaFYgCHp7sH2eKD3OEyo= X-Received: by 2002:a17:906:915:: with SMTP id i21mr31977028ejd.313.1593765594703; Fri, 03 Jul 2020 01:39:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 3 Jul 2020 10:39:43 +0200 Message-ID: To: Benas IML Cc: PHP Internals List Content-Type: multipart/alternative; boundary="00000000000020ab2c05a985786b" Subject: Re: [PHP-DEV] [RFC] [VOTE] Make constructors and destructors return void From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --00000000000020ab2c05a985786b Content-Type: text/plain; charset="UTF-8" > Hey internals, > > I have opened the voting for the RFC, let's hope everything is going > to be smooth :). If you have any other questions, let me know! > > RFC: https://wiki.php.net/rfc/make_ctor_ret_void > Hi Benas, I voted "no" to the RFC because to me adding "void" to constructor and destructor don't add any value: the semantics of these functions are totally defined. Annotating the code with "void" is duplicate information. The best this can do is open another code-style bikeshed war. About forbidding the functions from returning anything, I don't understand why this would improve the overall quality of anything. To me, this looks like gratuitous strictness. I also don't understand the secondary vote: enforcing "void rules" in 8.1 is a not-allowed BC break. This can only target 9.0 to me, there can be no discussion about it in a specific RFC. Or did I miss something? This is just my opinion on the matter of course. Thanks for contributing to PHP. Nicolas --00000000000020ab2c05a985786b--