Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114159 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 43652 invoked from network); 25 Apr 2021 19:41:15 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Apr 2021 19:41:15 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1DB4D1804BD for ; Sun, 25 Apr 2021 12:45:07 -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_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 out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.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)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 25 Apr 2021 12:45:07 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B98E75C0083 for ; Sun, 25 Apr 2021 15:45:06 -0400 (EDT) Received: from imap8 ([10.202.2.58]) by compute4.internal (MEProxy); Sun, 25 Apr 2021 15:45:06 -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=fm2; bh=j4Bmy3 VI23Q8caJjdlByEaIbEPF5natJVhiBJnb8nF0=; b=r8Cr3ffsWVdx7rF8uMvoD4 Tefoz9EcJhsh040xaVWHrAomVcQZWKhbSQoFc+SNAgLtFYAKmRRNBtcmPI9LtYfV UT0qgNboNuS3qIGXsBcKAww5weBjauYqS4knURJQ6wcp3cBPSWWdgkBeazOBGdFG j+NhrubibSOGn+j3BIxPuxj+mcpCEtJCa96RFjw8RTSGPHFG5YnU12ivNtCAeGjb auve0fjhfNlMqzOTegDvjSFYN2xkN2Btd/UCyzPc/grWCRi+A4OlQsxGLZhnV2n9 bOrYmotUmlaTjJpsIZiw1mGzIfiwv+084sB7CtikPuumObMTn551CXiLRQ/C4LlQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdduiedgudeggecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnhepveehhedvveejledvvefgleevffdtjeekledvkeeg heffgfeivdejhffhledtudetnecuffhomhgrihhnpehphhhprdhnvghtnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhf ihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 755323A02D2; Sun, 25 Apr 2021 15:45:06 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-403-gbc3c488b23-fm-20210419.005-gbc3c488b Mime-Version: 1.0 Message-ID: <0782ea44-6e5b-40fe-87d6-4b0fb12c9dba@www.fastmail.com> In-Reply-To: <44ac7866-75ef-44ab-a5f9-4e571652b5e6@www.fastmail.com> References: <44ac7866-75ef-44ab-a5f9-4e571652b5e6@www.fastmail.com> Date: Sun, 25 Apr 2021 14:44:46 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [RFC] Short functions, take 2 From: larry@garfieldtech.com ("Larry Garfield") On Wed, Mar 24, 2021, at 7:39 PM, Larry Garfield wrote: > 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 Hi folks. I've added a bit more reasoning to the short-functions RFC, so it's worth giving another read-over. It was also recently featured on an episode of PHP Internals if you want a more verbal case made. :-) Unless there is any significant feedback, I'll be calling a vote for this RFC sometime late this week (Thursday/Friday-ish). Cheers. --Larry Garfield