Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98227 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87919 invoked from network); 6 Feb 2017 21:38:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2017 21:38:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 74.125.82.179 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 74.125.82.179 mail-ot0-f179.google.com Received: from [74.125.82.179] ([74.125.82.179:34279] helo=mail-ot0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/E2-03389-DDCE8985 for ; Mon, 06 Feb 2017 16:38:37 -0500 Received: by mail-ot0-f179.google.com with SMTP id f9so72207905otd.1 for ; Mon, 06 Feb 2017 13:38:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=j1rKb2TPjFjbnaYpYWuUyiAAzTRlm7ogWA0v3YXPHZs=; b=sHGdDfMz8UQMmzplN0XqxV7a75Ikhd7UBpgZsDceUB2exCoRmc7urcE3572uZ9ieQJ AiBudFF/0pCQSLZwfC5oVBhYcxLJuSanKZFV+ggUCIffk1P+AUn2gXSdhr9jYaXvJCIX o5vJtK+CkIkrLewF6egs/bIWWKBpTfKO+ZDuneZ1eQem+82SV7656xhffXWm/jNY0mvC Obufz5s1o363z9wlgUn7bqGS3j2HUfUYyHELXPdwgpTvPXEVPypF9oiIzG270/SEw5hp JPErYP62SLJ4eggPOb1NugDojIVcBG6eGerXBLfP8EU+bDWBZJVT42711C4/Xz/LR3BR /NhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=j1rKb2TPjFjbnaYpYWuUyiAAzTRlm7ogWA0v3YXPHZs=; b=fvwUKRb7VCqg9DnA5En+Z9AZHziFeuXK1bZNI+z+0d9tvzcKmUOpbUqNrSKxBzQv9q itsow3n66IVHLxn4N2c52FdwISQX31XRdxXeHEheARhyR2tblJ2/esLQxRMfeEBGTOx1 UunhWsKbKdEDr1kOuYCAXZ9o1nVdY+jU9Bq3xoasOubJIH2zkC7ieNubelaE9uYuvujv yyBalmuRPWuR2b9/dIQkxK6fmDfvUkOviW+DdFqvtlrFKp91vIqKF3E3JusxTy2FxoTQ /p95b3FgPo9qMLKMKau8Sd1nEp0Yw4Q4ndohTs00frqknylDlqfsawV1WnhZtmJmbPqS o82w== X-Gm-Message-State: AIkVDXIIxKqdCXGXJT1f9u2XjATatTpxzPDwbdZuzAsqLPQfNu0pNHC0FmeEjPbCUrXLIhO9lkTz9Nw5srpUHw== X-Received: by 10.157.7.53 with SMTP id 50mr5534395ote.91.1486417114508; Mon, 06 Feb 2017 13:38:34 -0800 (PST) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.157.14.104 with HTTP; Mon, 6 Feb 2017 13:38:34 -0800 (PST) X-Originating-IP: [73.9.224.155] In-Reply-To: References: <459c6bef-8936-634a-9520-dbd65c35b7c7@fleshgrinder.com> Date: Mon, 6 Feb 2017 16:38:34 -0500 X-Google-Sender-Auth: Rs7HBPv49uqggbK3DoAiSAC1Q7I Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Namespaces in Core From: pollita@php.net (Sara Golemon) On Mon, Feb 6, 2017 at 3:47 PM, Nikita Popov wrote: > I'm strongly against use of the PHP namespace as a blanket namespace for > bundled PHP extensions. The PHP namespace should be used only for > functionality that is actually in some way related to PHP. For example, the > php-ast extension could reasonably be namespaced as php\ast, as it provides > an AST for PHP specifically. Similarly the tokenizer extension could > reasonably be namespaced as php\tokenizer. > Okay, I'm pickin' up what yer layin' down. Perhaps the question then should be asked in the other direction: Given PHP's long history and fanatical dedication to BC, should all bundled/core classes/functions/constants ALWAYS remain in the root namespace with a strong advisory to userspace libraries and applications to use vendor namespacing (which by and large, is precisely the status quo). If that makes sense, then that's another reason not to bring Sodium in as a namespaced library of functions. -Sara