Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98183 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99659 invoked from network); 4 Feb 2017 16:13:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2017 16:13:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-lists@koalephant.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php-lists@koalephant.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain koalephant.com designates 206.123.115.54 as permitted sender) X-PHP-List-Original-Sender: php-lists@koalephant.com X-Host-Fingerprint: 206.123.115.54 mail1.25mail.st Received: from [206.123.115.54] ([206.123.115.54:57518] helo=mail1.25mail.st) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C7/C4-38491-B9DF5985 for ; Sat, 04 Feb 2017 11:13:15 -0500 Received: from [10.0.1.63] (unknown [183.89.47.214]) by mail1.25mail.st (Postfix) with ESMTPSA id 9424260462; Sat, 4 Feb 2017 16:12:59 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) In-Reply-To: Date: Sat, 4 Feb 2017 23:12:59 +0700 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Scott Arciszewski X-Mailer: Apple Mail (2.3124) Subject: Re: [PHP-DEV] [RFC] [VOTE] Libsodium as a core extension in PHP 7.2 From: php-lists@koalephant.com (Stephen Reay) Hi Scott, (Sorry for re-send) > On 4 Feb 2017, at 22:20, Scott Arciszewski = wrote: >=20 > On Sat, Feb 4, 2017 at 5:37 AM, Fleshgrinder = wrote: >>=20 >> On 2/4/2017 12:54 AM, Scott Arciszewski wrote: >>> I like \Sodium\foo instead of sodium_foo, but it deviates from the = norm. >>> If we're going to break the norm, we should do so on a stronger = majority >>> than 50%+1. >>>=20 >>=20 >> I see another problem besides the issue that a namespaced core = elements >> are being introduced like in the US Senate, hidden within another = bill, >> and the fact that I still don't like the Sodium API itself and that = is >> that this might make autoloader updates in the future in regards to >> functions and/or constants more complicated. >>=20 >> One idea back than was that the autoloader is only triggered for = things >> that are listed in a use statement. This would have multiple = advantages >> since we would not require any backslash in front of built-in stuff >> anymore as anything that is not within a use would never trigger the >> autoloader and remove any potential performance hit for built-in = stuff >> due to autoloading. >>=20 >> Sodium having its own namespace would definitely appear in use >> statements because that is how IDEs work today and because nobody = wants >> to write `Sodium\foo()`, or do they? >>=20 >> -- >> Richard "Fleshgrinder" Fussenegger >=20 > Hi, >=20 >> I see another problem besides the issue that a namespaced core = elements >> are being introduced like in the US Senate, hidden within another = bill, >=20 > This is a separate choice that people can vote for. It's not exactly > hidden; nor is it bundled into a single "Yes/No". >=20 > The vote option concerns "permit an exception to the coding style" not > "change the coding style for everything". If anyone playing at home > wants to propose a separate RFC to update the coding style to allow > the use of namespaced functions in all future RFCs, it looks like (at > present count) at least 7 people would find such a proposal amicable. > (8 if you count me, though I don't have vote karma so my opinion is > irrelevant.) >=20 > Regards, >=20 > Scott Arciszewski > Chief Development Officer > Paragon Initiative Enterprises >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php I=E2=80=99m not a fan of the use of namespaced functions in the core = either. Given that 2/3 is required to accept a change, wouldn=E2=80=99t it make = more sense for the =E2=80=98default=E2=80=99 on Q2 be to follow PHP = existing standards, and require the 2/3 majority to deviate from that? Cheers Stephen=