> On Oct 21, 2020, at 8:50 AM, Larry Garfield wrote:
>
> On Tue, Oct 20, 2020, at 11:08 PM, Mike Schinkel wrote:
>>> On Oct 20, 2020, at 2:19 PM, Larry Garfield wrote:
>>>
>>> A while back, Nikita mentioned that it should now be easy to offer an
>>> abbreviated syntax for functions that are ju
On Wed, Oct 21, 2020, at 5:17 PM, Rowan Tommins wrote:
> It occurred to me recently that maybe we could make "function" and "fn"
> synonyms everywhere, i.e. make both "$double = function($x) => $x *2;"
> and "$double = fn($x) use ($x) { return $x *2; };" valid. I'm not sure
> if that's desirabl
On 21/10/2020 21:53, Larry Garfield wrote:
A while back, Nikita mentioned that it should now be easy to offer an
abbreviated syntax for functions that are just a single expression. I
decided to take a crack at it and it turns out he was right. I thus
offer this RFC:
https://wiki.php.net/rfc/sh
Hi Larry Garfield,
> > A while back, Nikita mentioned that it should now be easy to offer an
> > abbreviated syntax for functions that are just a single expression. I
> > decided to take a crack at it and it turns out he was right. I thus
> > offer this RFC:
> >
> > https://wiki.php.net/rfc/
On Tue, Oct 20, 2020, at 1:19 PM, Larry Garfield wrote:
> A while back, Nikita mentioned that it should now be easy to offer an
> abbreviated syntax for functions that are just a single expression. I
> decided to take a crack at it and it turns out he was right. I thus
> offer this RFC:
>
> h
On 21/10/2020 10:47, Pierre wrote:
I'd recommend that if your data is arbitrary, you can use arrays, if you
it's not, you probably always should write typed value objects
This is pretty much what I was going to say. If you have truly dynamic
keys, then having the full set of array functions a
On Wed, Oct 21, 2020 at 9:59 AM G. P. B. wrote:
> A rather short RFC about adding support for the "0o" prefix for octal
> integers.
> https://wiki.php.net/rfc/explicit_octal_notation
>
> Surprisingly PHP already accepts the prefix within octdec() and
> base_convert().
>
> I have hopefully covered
i want BLAKE3 hash support in php,
some justifications can be found here https://bugs.php.net/bug.php?id=79492
primary reasons being that it's a "cryptographically secure hash",
predecessor BLAKE was nearly crowned "SHA3" (SHA3 finalist),
and it's very fast in software,
when i run it against php-s
https://wiki.php.net/rfc/hash.context.oop
@Rowan Tommins
>I think I'd prefer to drop the fluent interface (returning void on most
> things, and relevant values on others)
well both approaches has pros and cons,
that said, the sample implementation Sara posted returns $this,
if you (or anyone) feels strongly about it one way or the othe
Hello internals,
A rather short RFC about adding support for the "0o" prefix for octal
integers.
https://wiki.php.net/rfc/explicit_octal_notation
Surprisingly PHP already accepts the prefix within octdec() and
base_convert().
I have hopefully covered all the cases where this may apply but if you
On Tue, Oct 20, 2020, at 11:08 PM, Mike Schinkel wrote:
> > On Oct 20, 2020, at 2:19 PM, Larry Garfield wrote:
> >
> > A while back, Nikita mentioned that it should now be easy to offer an
> > abbreviated syntax for functions that are just a single expression. I
> > decided to take a crack at
On Wed, Oct 21, 2020 at 1:01 AM tyson andre
wrote:
> Hi internals,
>
> Currently, if there is no constructor, php handles it just like
> `__construct(...$args) {}`,
> both for positional and named parameters. Is there any interest in
> changing that to be a deprecation warning if one or more para
Le 21/10/2020 à 11:38, Björn Larsson a écrit :
>
> Well, but for us with a legacy code base where this is heavily used
> it would definitely be an improvement! It would enable a so called
> stepwise refinement :-)
>
> One typical usecase we have is populating an object with the result
> from a DB q
Den 2020-10-21 kl. 01:30, skrev Larry Garfield:
On Tue, Oct 20, 2020, at 5:53 PM, tyson andre wrote:
Hi internals,
e.g. `$x = object{key: object{'escaped-literal': $v2 }};`
(equivalent to `$x = (object)['key' => (object)['escaped-literal' => $v2]];`)
For example, in JS, non-string key literals
15 matches
Mail list logo