On 3/15/2016 6:40 PM, Scott Arciszewski wrote:
> Link to RFC: https://wiki.php.net/rfc/libsodium
> 
> I'd like to bump the RFC to make Libsodium a core extension, as per
> Ferenc's suggestion on the mcrypt RFC.
> 
> Question: If this extension is adopted, which syntax would you prefer?
> 
>     \Sodium\func()
>     Sodium::func()
>     sodium_func()
> 
> As it currently stands, the PHP extension in PECL uses a namespace +
> function format.
> 
> Scott Arciszewski
> Chief Development Officer
> Paragon Initiative Enterprises <https://paragonie.com>
> 

The third option (*sodium_func()*) as per coding standard:

https://github.com/php/php-src/blob/master/CODING_STANDARDS#L110-L125

I do not think that it makes sense to provide a static class for this
functionality, correct me if I am wrong.

It definitely makes no sense to namespace the stuff if you want it in
core and it violate the coding standards (for a good reason).

-- 
Richard "Fleshgrinder" Fussenegger

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to