Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108332 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46432 invoked from network); 30 Jan 2020 15:47:50 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Jan 2020 15:47:50 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2487B18050B for ; Thu, 30 Jan 2020 05:58:45 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 30 Jan 2020 05:58:44 -0800 (PST) Received: by mail-lj1-f175.google.com with SMTP id y6so3482144lji.0 for ; Thu, 30 Jan 2020 05:58:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+nEmLKs3r8BKZ95a7GNjy+MJws5k4rbdSspRh+pvPmc=; b=KZ4GrxQYojLZihnlSmWYWW6gWFPaMaQgdIGAld4DJ4XFhvWwXEVl/ZBbxy2rRzkcRb QAA5hTrcZdv07UUsJ0Udm35d4Obd53ayhuCLfFEyphtp7Hzdji613q/+VYItXCUOVGbJ nErZmoFK+TYjLKlPEhCy73Cd1oUPCmCQL3eBnavXd0uMv5nlJSiKYDGzvpPPnm2BD2GS mKDMzsYmuXiaWvCiCS17RANMkid/0dB4EOlBeannWPd7GGlItmuIMsVr0C8a3wGjpxx5 fIEkdI1z4GLBJ2zGZUGTmOZnEyK8SS+W+viT7gOnLnMwo0fqMPYVNrH84alLIJGhA6/6 tUGg== 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:cc; bh=+nEmLKs3r8BKZ95a7GNjy+MJws5k4rbdSspRh+pvPmc=; b=rKU6pzguqTZUBh3AQTRjT3Ktc1+b63UoIr4Q3Y/skDIVbA0eqxgehbGqM8GJCu+SvZ Q9n6WIpoGDbr5UgGOA6DNuQyPi8ZFexX4KOIqxvBZ7LNgn9BLEmz64SDnII9cFy0h3pi b9g0WADDRC8yLPeoimnobz0ObPSNgX0WaZVBu5/PrIxCjIPcaawDUBUDAcO2iFPxn/NT ktJQpTdXAUXII/HC4dVKQ+mtL3CTjANjvoy3JayR27q81IfXT3iXY259Bwf63kA5N+en iHxE20GSXG+R7ILBe+tGxBJzhlCaBzUn/tBDGDY7JkbtCF3dga/torCPBk/bUt0VmYr9 zA+w== X-Gm-Message-State: APjAAAUeyLDq3a6XzlXBlzRxEixIEGVZAG/JW7qcQYycp1498SIXhWRj J8Bsy9sNqC6YAblPmmg/gc/hxvbezDf6YANTcA== X-Google-Smtp-Source: APXvYqzZaDYnAC1DDVFuDdF2iUBq3VEjLVm0e3g9pj5YpiH+WYYTUA3/W1KqNV9n26YrbAiqFe3HRa5TKvejggfKEyM= X-Received: by 2002:a2e:85ce:: with SMTP id h14mr2997971ljj.41.1580392722379; Thu, 30 Jan 2020 05:58:42 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ab3:1904:0:0:0:0:0 with HTTP; Thu, 30 Jan 2020 05:58:41 -0800 (PST) In-Reply-To: References: Date: Thu, 30 Jan 2020 14:58:41 +0100 Message-ID: To: "bishop@php.net" Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary="000000000000d2b673059d5bda3b" Subject: Re: [PHP-DEV] [VOTE] declare(function_and_const_lookup='global') From: guilliam.xavier@gmail.com (Guilliam Xavier) --000000000000d2b673059d5bda3b Content-Type: text/plain; charset="UTF-8" > declare(strict_qualify=1); > > namespace foo; > > use function \{array_diff, var_dump}; > use const \bar\{a, b}; [Off-topic] All coding standards I've seen forbid writing a leading backslash in "use" and in strings. Indeed, `use \Ns\Klass;` gives the false impression that the leading backslash be required to avoid relative resolution, but `use Ns\Klass;` is already absolute. And for strings, `\Ns\Klass::class` (or `get_class(new \Ns\Klass())`) is equal to `'Ns\Klass'`, not `'\Ns\Klass'`. -- Guilliam Xavier --000000000000d2b673059d5bda3b--