Re: [RFC] [Discussion] Add bcdivmod to BCMath

From: Date: Sun, 30 Jun 2024 16:08:43 +0000
Subject: Re: [RFC] [Discussion] Add bcdivmod to BCMath
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-124112@lists.php.net to get a copy of this message
On Sun, Jun 30, 2024, at 17:45, Tim Düsterhus wrote: > Hi > > On 6/30/24 17:31, Rob Landers wrote: > > - list() -- kinda > > That is not a function. > > > - array_shift(), array_pop(), etc. > > These do not return by out-parameter. These return the value and modify > the array by reference to remove the returned value. > > > - preg_match*() > > These only return supplementary data by an out-parameter. The main > result ("does the RFC match") is returned regularly. > > > - all the sorts > > > These do not return anything, they modify the array in-place, which is > something different than returning something. > > Best regards > Tim Düsterhus > We can argue the semantics of input/output, but the point still stands that return by reference is still more common than structured array, and even then, those are usually much bigger things. — Rob

« previous php.internals (#124112) next »