Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113751 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 44455 invoked from network); 25 Mar 2021 00:44:34 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Mar 2021 00:44:34 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 262401804D0 for ; Wed, 24 Mar 2021 17:40:27 -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=-0.7 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,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 out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 ; Wed, 24 Mar 2021 17:40:26 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C3F035C00C5 for ; Wed, 24 Mar 2021 20:40:25 -0400 (EDT) Received: from imap8 ([10.202.2.58]) by compute4.internal (MEProxy); Wed, 24 Mar 2021 20:40:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=iWkPR16ae2kWWT4XSAkXShFVeeom7 exMUmNZfqYmsDw=; b=VTLjdePCEn9/BOYNCK7sHcZoEwabfgoDFsPvwmip6jVz1 Vc0Eac296YMsNQ1JUwYMlDQO1iahEjJ7P00vPxe1a1dDp0ZLpByG1ROw064Xj3oJ b4mfVqcPBeahYgnVraVfhKv6PqtfGXwneZAzS5loup2fJIWViTwCTH1zGeUx0jtE DXHEHHcYmwBrlHrt9VeqLqXhvsMT2inenW4nK3ZqdZVqRm2/Qy1t0mEYh3COXDDN gsnBoc23LRvzHu1BpWUVo2z2t+oWAUHVP+71bOqcHpcoXGze8qgeXmSIuc1Z2Cvd Crc3SEQNjmTCzYWKZMPus0K/cBEC+lXZFJPPD7vwg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudegledgvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkfffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghrrhih ucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmqe enucggtffrrghtthgvrhhnpeegheffiefhtdekfeevffeuieeihfejudfhuefhtdetleel hfdvjeetkefggfeuieenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghl ughtvggthhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5002E3A0839; Wed, 24 Mar 2021 20:40:25 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-273-g8500d2492d-fm-20210323.002-g8500d249 Mime-Version: 1.0 Message-ID: <44ac7866-75ef-44ab-a5f9-4e571652b5e6@www.fastmail.com> Date: Wed, 24 Mar 2021 19:39:44 -0500 To: "php internals" Content-Type: text/plain Subject: [RFC] Short functions, take 2 From: larry@garfieldtech.com ("Larry Garfield") As requested, splitting off the short-functions RFC to its own thread. https://wiki.php.net/rfc/short-functions In response to the feedback that the savings in typing volume is small, that's true but also not the main point. The main point is to allow and encourage functions to be written an in "expression style", that is, as actual functions and not procedures. As the RFC notes, such use cases are increasing, and is likely to increase in PHP, and that's overall a good thing for the language. It fits well with a number of recent RFCs both passed and proposed, and makes writing functional-style code much more natural. PSR-12 may be unnecessarily verbose (I dislike PSR-12 myself, and have made no secret of that), but it is far and away the most widely used coding standard in PHP land so we cannot ignore its influence. -- Larry Garfield larry@garfieldtech.com