Re: [RFC] Add Random Extension (before: Add Random class)
| From: | Go Kudo | Date: | Fri, 02 Jul 2021 13:39:45 +0000 |
| Subject: | Re: [RFC] Add Random Extension (before: Add Random class) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-115274@lists.php.net to get a copy of this message | ||
> 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 implemented in the future.
> Can you also clarify what happens when serialization or cloning fails?
OK, I've updated it. But these are not special behaviors, they are built on
top of the standard PHP mechanisms.
Regards,
Go Kudo
2021年6月26日(土) 17:55 Kamil Tekiela <tekiela246@gmail.com>:
> Hi Go Kudo,
>
> I find this iteration acceptable, but I have one last complaint. Why the
> double namespace? Can it not be simply Random/RandomNumberGenerator?
>
> Can you also clarify what happens when serialization or cloning fails?
>
> Regards,
> Kamil
>