Re: [PHP-DEV] [RFC] Short functions, take 2

2021-03-25 Thread Larry Garfield
On Thu, Mar 25, 2021, at 12:12 AM, Peter Stalman wrote: > On Wed, Mar 24, 2021 at 5:40 PM Larry Garfield > wrote: > > > 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 b

Re: [PHP-DEV] [RFC] Short functions, take 2

2021-03-25 Thread Guilliam Xavier
On Thu, Mar 25, 2021 at 4:23 AM Levi Morrison via internals < internals@lists.php.net> wrote: > [...] > Instead of writing this: > > ``` > class A > { > public function method($arg1) > { > return expr($arg1); > } > } > ``` > > I can write this: > > ``` > class A { > function method($ar

Re: [PHP-DEV] [RFC] Short functions, take 2

2021-03-24 Thread Mike Schinkel
> On Mar 24, 2021, at 11:22 PM, Levi Morrison via internals > wrote: > > On Wed, Mar 24, 2021 at 8:02 PM Mike Schinkel wrote: >> >>> On Mar 24, 2021, at 8:39 PM, Larry Garfield wrote: >>> >>> As requested, splitting off the short-functions RFC to its own thread. >>> >>> https://wiki.php.net

Re: [PHP-DEV] [RFC] Short functions, take 2

2021-03-24 Thread Peter Stalman
On Wed, Mar 24, 2021 at 5:40 PM Larry Garfield wrote: > 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 a

Re: [PHP-DEV] [RFC] Short functions, take 2

2021-03-24 Thread Levi Morrison via internals
On Wed, Mar 24, 2021 at 8:02 PM Mike Schinkel wrote: > > > On Mar 24, 2021, at 8: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 typ

Re: [PHP-DEV] [RFC] Short functions, take 2

2021-03-24 Thread Mike Schinkel
> On Mar 24, 2021, at 8: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. T