Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110900 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 58216 invoked from network); 9 Jul 2020 16:50:41 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Jul 2020 16:50:41 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id ADFDE18053F for ; Thu, 9 Jul 2020 08:41:52 -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-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) (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 ; Thu, 9 Jul 2020 08:41:52 -0700 (PDT) Received: by mail-io1-f48.google.com with SMTP id q74so2823175iod.1 for ; Thu, 09 Jul 2020 08:41:52 -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=hlDdpfypFQ5orsm8C7cgumJXViZjQDrBUNCo77nE5TI=; b=pSufsxPVqZ4m+elG+br+BjJRQcym0bzq9iPIfPTt15D+xG8q+prSNKf1SBZPoVHL0z eTRFXPHT/OUKEFHmp8ie34s6NHOZI0LMsutnZVVJ94WjrEJFTXTxYYVJB1/uhSBPKgsF g9dOEZCReVnllgRt6c7mUw5rasStOvrHNtwtIPRD4PKkcbMlUbyx268h02ZTpSkB8iy5 dmU+noOIe92NruGGtUe3CPACBJCuxn2sbjvM7+Z0LqZE/72/xaoNvQkQDa4VCw1PrhF1 rEIbAkPFIPKw8tVzIMdBW2wzReKXoTmeNmZHfGETHpDUlK7xe1BRh6rsdkWyy4gyDWRI eFXQ== 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=hlDdpfypFQ5orsm8C7cgumJXViZjQDrBUNCo77nE5TI=; b=nATQ9oJCtCkiPOsYuOgLaY6SKdeqOq/YVGZFxgdGXItuvbvDb6m3tQRdHuBrWaOvYn nrpzZpbyHTecErarCAqT91d7r45E9MmEsc0tTMjxTURR+aJwtBeytabnNPxDLdsvAI1b O/Qa4Aj0DY/LquaAI63gimNHfzOa+rmg5XZz9lpDbtWMD9YyjvV0O2sg+nOSoKHesVPt 04F2TZKWhB7Djrr+neEEOp5JMWCyP3Lyd/eVqui/aBWjRBLWY7QWiObrHWbERvQx3jcR rG2xSkKlQeUAbb0OoNwbBE4Vulxf3XY39mZJduom05SI0DBzwjL7TUoIzc4EfkdWtsYO DLuQ== X-Gm-Message-State: AOAM532PdLZuA6zyg7KnFnG6qmdf32MXTKi7Dv8r7KXb/8skkcoX/XfA MFEqlVx1omFK018N7vW2GMXynxjv X-Google-Smtp-Source: ABdhPJz+OVJcPia4a/mO0bqPnEVmvZNwnn/OPKFu5luk/acbnTlmqLXASFDB5p6i2oroYJitS0wfOQ== X-Received: by 2002:a05:6602:449:: with SMTP id e9mr42119827iov.71.1594309309898; Thu, 09 Jul 2020 08:41:49 -0700 (PDT) Received: from mail-io1-f52.google.com (mail-io1-f52.google.com. [209.85.166.52]) by smtp.gmail.com with ESMTPSA id l13sm2371218iob.28.2020.07.09.08.41.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2020 08:41:49 -0700 (PDT) Received: by mail-io1-f52.google.com with SMTP id d18so2825242ion.0 for ; Thu, 09 Jul 2020 08:41:48 -0700 (PDT) X-Received: by 2002:a02:7419:: with SMTP id o25mr18120388jac.46.1594309308712; Thu, 09 Jul 2020 08:41:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 9 Jul 2020 16:41:13 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Benjamin Eberlei Cc: Benas IML , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000021c5605aa041060" Subject: Re: [PHP-DEV] Re: [RFC] [VOTE] Make constructors and destructors return void From: phpmailinglists@gmail.com (Peter Bowyer) --000000000000021c5605aa041060 Content-Type: text/plain; charset="UTF-8" On Thu, 9 Jul 2020 at 14:52, Benjamin Eberlei wrote: > For me the RFC vote should be "allow to dcelare return types on > constructors/destructors?", then people *can* declare void, but *can* also > declare other things, but nothing *must* be done. Then it becomes a > question of coding styles enforcing "void" for all constructors of a > project for example. I would vote Yes on that. > Isn't this close to what the second vote "Allow void return type on constructors/destructors?" does? My understanding is that a "Yes" on this vote will: 1. Allow you to omit a return type (and therefore return whatever you want) 2. Explicitly add void return type This doesn't do exactly what you ask for (to add any return type) but to me is close enough; as these are meant to be void according to the PHP docs, having it as the only explicit return type makes sense to me. Peter --000000000000021c5605aa041060--