Re: [PHP-DEV] [RFC] [Discussion] Clone with

2023-04-18 Thread Bob Magic
> [1] In fact if the right hand side of with may be an expression that > evaluates to an array, folks wouldn't need to learn new syntax at all: > > $newProperties = [ "foo" => "bar" ]; > clone $object with $newProperties; > > and > > clone $object with [ "foo" => "bar" ]; in my

Re: [PHP-DEV] Array spread append

2023-04-07 Thread Bob Magic
> I think it would be more intuitive to implement an array "appending" > functionality with "concatenating" syntax. The `.=` syntax already exists, > but is forbidden from use on non-strings. If you want to implement this > preexisting syntax as an array concatenation operator, then it is a

Re: [PHP-DEV] Problems with the mailing list [was: Re: [PHP-DEV] Request for karma to vote on RFCs]

2021-07-20 Thread Bob Magic
i can't prove that i was shadowbanned but after a huge fight with someone on this mailing list, i stopped getting all responses from it, even just general help commands, for about 6 years. mysteriously it just started working again last year with nothing done on my part, and here i am, right where

Re: [PHP-DEV] Request for karma to vote on RFCs

2021-07-19 Thread Bob Magic
> Currently there are people with voting permissions that do vote, yet do not interact with RFCs or the mailing list. it does not help that depending on how you get the mailing list (like me, in digest form) its almost impossible to actually chime in. just to reply to this i have done about 13

Re: [PHP-DEV] [RFC] clamp

2021-06-24 Thread Bob Magic
why stop with clamp? add wrap too. imagine being against clamp but ok with floor and ceiling. lets make our math lib even better.

Re: [PHP-DEV] Discussion: Object-scoped RNG

2021-05-12 Thread Bob Magic
> - Do you think that PHP needs an object-scoped random number > > implementation? And why? if this means each object can maintain its own seed i dont know why php or many other languages dont have this truely. been doing game dev recently and i needed an rng system that does not involve messing