Hi internals,
As the partial function application RFC has not been accepted, I have
opened voting on https://wiki.php.net/rfc/first_class_callable_syntax. The
vote closes on 2021-07-16.
This RFC uses a syntax that is forward-compatible with partial function
application. Should it not be accepted,
> Can it not be simply Random/RandomNumberGenerator?
The interface should be named NumberGenerator\Generator, but since it is
confused with the built-in Generator, it is named RandomNumberGenerator.
The reason for using the NumberGenerator namespace is that some class using
random numbers may be i
> * The first bit is just clarification. After a cursory look at the
implementation, my understanding is that the getInt(), shuffleArray() and
shuffleString() APIs will always produce consistent results on 32-bit and
64-bit, as long as your inputs are 32-bit as well (i.e., min/max are 32-bit
and s
This RFC uses a syntax that is forward-compatible with partial function
application. Should it not be accepted, I'll explore alternative syntax
possibilities.
Given the choice of syntax in this proposal (which I do like)... Is the
following (potentially future) use case precluded by the synt
>> "Why does this method exist at all? When would you use it instead of
>> getInt()?"
>>
> The case for this would be if you want to get a raw unrounded random number
> sequence as a number. The situations where this is required would certainly
> be limited, but it would be nice to have. (At lea
Hi Nikita,
Thanks for the RFC. A quick question, is it allowed to assign to a readonly
property multiple times within the construction method? Sorry for it if someone
has asked this before, because actually I didn't go through the whole thread,
only did a quick search on it. Thanks.
Regards,
C
On Fri, Jul 2, 2021 at 10:32 AM Ralph Schindler
wrote:
>
>
> > This RFC uses a syntax that is forward-compatible with partial function
> > application. Should it not be accepted, I'll explore alternative syntax
> > possibilities.
>
> Given the choice of syntax in this proposal (which I do like)...