Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114894 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 22142 invoked from network); 15 Jun 2021 19:37:37 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Jun 2021 19:37:37 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2F2D21804C0 for ; Tue, 15 Jun 2021 12:54:12 -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.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (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, 15 Jun 2021 12:54:11 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id DAADE163C for ; Tue, 15 Jun 2021 15:54:09 -0400 (EDT) Received: from imap8 ([10.202.2.58]) by compute3.internal (MEProxy); Tue, 15 Jun 2021 15:54:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=2ZkVMP ULi/zYaFFq/krop4nuyg4N1RipynZKWQoXFOo=; b=XwKGhe6zPov/lRrYgLktNm nMLp21mSrlIlMXpD3a/xVEWUb826qMeTaeAQWeG3b8tyYXt1MWwi7+TNC4JYTjyZ JO8NglmNzhywHPcdaj3RH2HnAmMSyIsbH+wTXMoidIW3414cgy24cL4yCWJ2d2ut FPDG0WEHlSElhRrPhlL49bd55TxlFk0guICOwWz85/COAEjhuycfRrjEzzrAqU6R XhqzS01AT/TbCyklbAnHrApGNTraH7l2laCdLfd+HMTsvoWEy/031E/sWe+7WaEs d0/5JI9BuAUtLCvCpEFKpUAv8IGhB9rWBkgGFpoPFM3C6rb9OtqVkp0OhOZPQ/mg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvjedgudeggecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnhepkeetleehffegfedvudefueejkefhvddtueeuvdev teeiveehledugeejudfhhfetnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehg rghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 380323A095D; Tue, 15 Jun 2021 15:54:09 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-519-g27a961944e-fm-20210531.001-g27a96194 Mime-Version: 1.0 Message-ID: <78321294-b416-4d0d-a170-3f6f424ea7b4@www.fastmail.com> In-Reply-To: References: Date: Tue, 15 Jun 2021 14:53:48 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] Rename Fiber::this() to Fiber::getCurrent() From: larry@garfieldtech.com ("Larry Garfield") On Tue, Jun 15, 2021, at 2:01 PM, Aaron Piotrowski wrote: > Hi all, > > During the Fiber RFC vote, several people noted that they objected to > the name Fiber::this() for the method returning the currently executing > Fiber object. > > I'd like to propose renaming this method to Fiber::getCurrent(). A > simple PR for the rename: https://github.com/php/php-src/pull/7155 > Nothing has functionally changed about the method, only the name. > > Fiber::current() is another possibility, but was not chosen because it > may be conflated with Iterator::current(). > > Does anyone object to this rename? Shall we have a vote or is that not > necessary? > > Cheers, > Aaron Piotrowski I support this change, and don't think it needs an RFC. I would vote for it if it were necessary, though. --Larry Garfield