Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110894 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 97877 invoked from network); 9 Jul 2020 15:00:41 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Jul 2020 15:00:41 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C81B81804E6 for ; Thu, 9 Jul 2020 06:51:50 -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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.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 ; Thu, 9 Jul 2020 06:51:49 -0700 (PDT) Received: by mail-wr1-f47.google.com with SMTP id k6so2471449wrn.3 for ; Thu, 09 Jul 2020 06:51:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DAq5uZD+Gr9xEcXFgkpiefP6d+pxdhjU5+xdBceDsmM=; b=1EGVohP8thSN/crzaOWdL3goRQcTwzHgO2537124fO5nzOTxAEZY5ivQqYaWDbMN3E 9u4rpm3aVIFSAIwxBo2RTDzOBCDBk+4VS+xiu1XaNQ2WVjTTA4wkOjFYzJsyT2SsxUEP b8VN6QDD3wgRn44V6jLKqAj8fsCs85hP4DQdASyHdT6FuV+xPdpF7vtUBKiq2VlEhs9G BgIFQ9aUf1JFQq6lnMe898UgL2cv0eEpaSRgTgF/gTJbZU3V0p02odoFI97NryaP4td5 JCtN5J8CvFx8vPEyq8HhUBsDX2AdiHK8T5hflX/SRslyXGxtYjtHYfKZn+Bitsmcl2cY lVEA== 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=DAq5uZD+Gr9xEcXFgkpiefP6d+pxdhjU5+xdBceDsmM=; b=MASwJMVhMIjyzeT+C63+I6XhEMY21hrXONZtFZVsfL3aQ3+jNx3ZU5HCiEnl3Q7qZA Fow5bO0rws7cdbVoeFm3WN5Rf6KJzVoMbl/Kiy22Waqvg6hrvjIWEhpA1iQ9AnGcFRa+ CrxTEeo0LbZ4d7S2gL35qMtzvpk3v+jHYLqivD++z3bM6a4YpdI3dDhREkoBsLlNh8fx BMGYDjbDdam31aIFLoSIcfWam9P9qbzqQg2HGnUJjJ9Ohi0HGn/rGQAiTmBCUu4LL5z/ XQesDcvlzNQDkiRCLTFU8iQJnikEFiO8p/5mEzekSC1AQEFluVBgrUnPm+55ppg8WVhH BoJQ== X-Gm-Message-State: AOAM532l7bJZJ1zAIC7buXvxMsAAoQidp1iTcwzfCsQBetpLKvEOklB7 s+btv9YmNzzeS2hhJtW/ZNLUKBL3d/ocseLwqYxenQ== X-Google-Smtp-Source: ABdhPJzvlCHe25kwwZIlrvmJ93ry49lMUgg0SvVKF2yVVpFm3+VFy6XRk7KZPbHcuxKLSaABZTTgYL4i+QnLP8hRq0g= X-Received: by 2002:a5d:5187:: with SMTP id k7mr31321073wrv.39.1594302707728; Thu, 09 Jul 2020 06:51:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 9 Jul 2020 15:51:36 +0200 Message-ID: To: Benas IML Cc: PHP Internals List Content-Type: multipart/alternative; boundary="0000000000008f232a05aa028685" Subject: Re: [PHP-DEV] Re: [RFC] [VOTE] Make constructors and destructors return void From: kontakt@beberlei.de (Benjamin Eberlei) --0000000000008f232a05aa028685 Content-Type: text/plain; charset="UTF-8" On Wed, Jul 8, 2020 at 10:15 PM Benas IML wrote: > Hey internals, > > I have reopened the voting. It is going to close July 22nd, 2020. I have > also > added a "Why allow void return type on constructors/destructors?" section > which > I hope internals are going to read and consider before voting. Thanks! > I wanted to give a datapoint for my no vote. I think going from forbidding return types on ctors to requiring them to be void is one step to far. Yes, the use-cases for returning something from a constructor are questionable, but why force something that strictly is not something the language should care about, as it can as easily be a coding style topic. 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. > RFC: > https://wiki.php.net/rfc/make_ctor_ret_void > > Best regards, > Benas > > On Fri, 3 Jul 2020 at 00:12, Benas IML wrote: > > > > 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 > > > > Best regards, > > Benas Seliuginas > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --0000000000008f232a05aa028685--