Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98178 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90112 invoked from network); 4 Feb 2017 15:20:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2017 15:20:51 -0000 Authentication-Results: pb1.pair.com header.from=scott@paragonie.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=scott@paragonie.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain paragonie.com designates 74.125.82.182 as permitted sender) X-PHP-List-Original-Sender: scott@paragonie.com X-Host-Fingerprint: 74.125.82.182 mail-ot0-f182.google.com Received: from [74.125.82.182] ([74.125.82.182:36712] helo=mail-ot0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/13-38491-151F5985 for ; Sat, 04 Feb 2017 10:20:50 -0500 Received: by mail-ot0-f182.google.com with SMTP id 32so34824744oth.3 for ; Sat, 04 Feb 2017 07:20:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragonie-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=RCHbWVfHdEXehk6Z/Z+nNOrT51aBC5zT321UAuq6epI=; b=xqbxHTSbrFPF1j15RmmCD+CRkhIdnvtIlB+A9ArFKwzWb5o+52NyGDVmywqHQ1RKGw TtMyTWQd4D5gDLYqfEUJTwNTI5NonTL9jKXA+plsaDJ6WcnzHML1i7CbIuNG24WiAZ3U KOgNBtOhXpRPcddI/XFHXgwW7pqD61UvbSnrTa9ti3mO0Z8fhKY/cOg3cVPRPPjOnXMM MRY0m0RT66JonKGxE4drO3y9r8tj/4YavSdaT80r7P+4i9gOt8pI7h/VG7M9kDjt3l3G TWtcX2ptH3IRgNiL9rIBEwUVuY8+fiIIbKeVnPGw7BQLG1zW4MgQtNSHFqkyqBy6lWFT 2BUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=RCHbWVfHdEXehk6Z/Z+nNOrT51aBC5zT321UAuq6epI=; b=OHjY3IsiRm+PPLGMw0U6VjNva7QfcZWl5ezVgscs7ucggXTRYGTOyQEfN2MoUg7bGf /M28sjDzXfplkgVeSLKihY2kx9Fiu9BKPbhfrAnvlanopKfrHNjBULPAbwxbhT392JBW SyFtP7C/tkaPOp9bYrY0QRLQustzeguF840Re6lwSHQ7eNIK11FazVCFGekwRIDx3+Li 6BR3zk59HS7Fg7Q3b5Tm23cyNeUaVusjYMU+mvV8SXjC7tDZH1Mm+fq3qeWHfLeyK2DZ sLMS62r5E0pFzSr81RLC316R9iTpTy0gAhp84RB0nWmHcMWL8NNF9jfGSl//QxNAq94o nyFQ== X-Gm-Message-State: AMke39nEc+wapEn9eAseZhz/axkm/m0e/FUEnug5pv9X2BBtx3RVFY9toP9xtzMgHKMqSdpn8oL2ScuTDGOKLw== X-Received: by 10.157.38.165 with SMTP id l34mr1077600otb.97.1486221646245; Sat, 04 Feb 2017 07:20:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.56.141 with HTTP; Sat, 4 Feb 2017 07:20:45 -0800 (PST) In-Reply-To: References: Date: Sat, 4 Feb 2017 10:20:45 -0500 Message-ID: To: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] [VOTE] Libsodium as a core extension in PHP 7.2 From: scott@paragonie.com (Scott Arciszewski) On Sat, Feb 4, 2017 at 5:37 AM, Fleshgrinder wrote: > > 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. > > > > 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. > > 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. > > 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? > > -- > Richard "Fleshgrinder" Fussenegger Hi, > I see another problem besides the issue that a namespaced core elements > are being introduced like in the US Senate, hidden within another bill, This is a separate choice that people can vote for. It's not exactly hidden; nor is it bundled into a single "Yes/No". 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.) Regards, Scott Arciszewski Chief Development Officer Paragon Initiative Enterprises