[RFC] Short functions, take 2

From: Date: Thu, 25 Mar 2021 00:39:44 +0000
Subject: [RFC] Short functions, take 2
Groups: php.internals 
Request: Send a blank email to internals+get-113751@lists.php.net to get a copy of this message
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

« previous php.internals (#113751) next »