Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82694 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40198 invoked from network); 14 Feb 2015 18:03:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Feb 2015 18:03:31 -0000 Authentication-Results: pb1.pair.com header.from=markus@fischer.name; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=markus@fischer.name; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fischer.name from 62.179.121.40 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 62.179.121.40 fep20.mx.upcmail.net Solaris 10 (beta) Received: from [62.179.121.40] ([62.179.121.40:55650] helo=fep20.mx.upcmail.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A3/60-36925-0FD8FD45 for ; Sat, 14 Feb 2015 13:03:29 -0500 Received: from edge02.upcmail.net ([192.168.13.237]) by viefep20-int.chello.at (InterMail vM.8.01.05.13 201-2260-151-135-20130320) with ESMTP id <20150214180325.KOMT6348.viefep20-int.chello.at@edge02.upcmail.net> for ; Sat, 14 Feb 2015 19:03:25 +0100 Received: from mail02.home ([213.47.1.174]) by edge02.upcmail.net with edge id sJ3P1p00w3lFLNl01J3PGa; Sat, 14 Feb 2015 19:03:24 +0100 X-SourceIP: 213.47.1.174 Received: from mail02.home ([192.168.1.14] helo=[IPv6:::1]) by mail02.home with esmtp (Exim 4.72) (envelope-from ) id 1YMh3r-0004aQ-E2 for internals@lists.php.net; Sat, 14 Feb 2015 19:03:24 +0100 Message-ID: <54DF8DEB.50402@fischer.name> Date: Sat, 14 Feb 2015 19:03:23 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: Spam detection software, running on the system "scanner01.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > 2015-02-13 13:50 GMT-03:00 Nikita Popov : >> use PhpParser\NodeVisitorAbstract; >> use PhpParser\Error; >> use PhpParser\Node; >> use PhpParser\Node\Name; >> use PhpParser\Node\Name\FullyQualified; >> use PhpParser\Node\Stmt\Namespace_; >> use PhpParser\Node\Stmt\Use_; >> use PhpParser\Node\Stmt\Class_; >> use PhpParser\Node\Stmt\Interface_; >> use PhpParser\Node\Stmt\Trait_; >> use PhpParser\Node\Stmt\Function_; >> use PhpParser\Node\Stmt\Const_; >> use PhpParser\Node\Stmt\Catch_; >> use PhpParser\Node\Stmt\TraitUse; >> use PhpParser\Node\Stmt\TraitUseAdaptation\Precedence; >> use PhpParser\Node\Expr\StaticCall; >> use PhpParser\Node\Expr\StaticPropertyFetch; >> use PhpParser\Node\Expr\ClassConstFetch; >> use PhpParser\Node\Expr\New_; >> use PhpParser\Node\Expr\Instanceof_; >> use PhpParser\Node\Expr\FuncCall; >> use PhpParser\Node\Expr\ConstFetch; >> >> Damn, this looks unwieldy. With this proposal it becomes: >> >> use PhpParser\{NodeVisitorAbstract, Error, Node}; >> use PhpParser\Node\{Name, Name\FullyQualified}; >> use PhpParser\Node\Stmt\{ >> Namespace_, Use_, Class_, Interface_, Trait_, Function_, >> Const_, Catch_, TraitUse, TraitUseAdaptation\Precedence}; >> use PhpParser\Node\Expr\{ >> StaticCall, StaticPropertyFetch, ClassConstFetch, New_, >> Instanceof_, FuncCall, ConstFetch}; >> [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: Re: [PHP-DEV][RFC][VOTE] Group Use Declarations From: markus@fischer.name (Markus Fischer) > 2015-02-13 13:50 GMT-03:00 Nikita Popov : >> use PhpParser\NodeVisitorAbstract; >> use PhpParser\Error; >> use PhpParser\Node; >> use PhpParser\Node\Name; >> use PhpParser\Node\Name\FullyQualified; >> use PhpParser\Node\Stmt\Namespace_; >> use PhpParser\Node\Stmt\Use_; >> use PhpParser\Node\Stmt\Class_; >> use PhpParser\Node\Stmt\Interface_; >> use PhpParser\Node\Stmt\Trait_; >> use PhpParser\Node\Stmt\Function_; >> use PhpParser\Node\Stmt\Const_; >> use PhpParser\Node\Stmt\Catch_; >> use PhpParser\Node\Stmt\TraitUse; >> use PhpParser\Node\Stmt\TraitUseAdaptation\Precedence; >> use PhpParser\Node\Expr\StaticCall; >> use PhpParser\Node\Expr\StaticPropertyFetch; >> use PhpParser\Node\Expr\ClassConstFetch; >> use PhpParser\Node\Expr\New_; >> use PhpParser\Node\Expr\Instanceof_; >> use PhpParser\Node\Expr\FuncCall; >> use PhpParser\Node\Expr\ConstFetch; >> >> Damn, this looks unwieldy. With this proposal it becomes: >> >> use PhpParser\{NodeVisitorAbstract, Error, Node}; >> use PhpParser\Node\{Name, Name\FullyQualified}; >> use PhpParser\Node\Stmt\{ >> Namespace_, Use_, Class_, Interface_, Trait_, Function_, >> Const_, Catch_, TraitUse, TraitUseAdaptation\Precedence}; >> use PhpParser\Node\Expr\{ >> StaticCall, StaticPropertyFetch, ClassConstFetch, New_, >> Instanceof_, FuncCall, ConstFetch}; >> It's only the former (existing) format which has benefits at all to me: - cognitively *I* can much easier glance through to "find" something. Because my eyes just have to scan up/down on the same character column - It's not alphabetically sorted (which just is important to "find" things for a human, IMHO). No problem! Good text editors allow to sort a selected text area alphabetically. Good look trying that with the group syntax; this requires manual labor work or tooling. - Markus