Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61691 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20256 invoked from network); 24 Jul 2012 15:34:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2012 15:34:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=reeze.xia@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=reeze.xia@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: reeze.xia@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gg0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:54760] helo=mail-gg0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/9B-17533-970CE005 for ; Tue, 24 Jul 2012 11:34:17 -0400 Received: by ggnf2 with SMTP id f2so7760053ggn.29 for ; Tue, 24 Jul 2012 08:34:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:x-mailer:mime-version:content-type; bh=jU4nscHuR19Cr/8/D7PX5Xx1yGFLKfDPjoh1eZ4Gs8w=; b=NPUhFVv26lOlWQmtB+s+XOMPYphrcCFjnYefsh1J6z/EGHJsDT6PUy8plLmAPDx7sL 8vNR+m3B9pc97Ak89j3EOoz8H4DjoMQ3WR2mgeRcWqQrMb/bOZ6ZLBA+ng3v20mejKwZ 4iLgMgx1ui0QJyc836UM+S+lvkRCs4m5Dzp5cIX6Bb5o3FiExuUGb5kGsLqw0FGxLWA0 dzuRW152f/XCAeiQeov0xtXSfVtpvFqOi4zegsnM9bd9ROaB+vNqBHXqZjmBQyHxwt04 l+CXZBN2Cdj2K9w84XhxsthsVRrJinJ5JvzbUXKSJY3gqsf8FMfgRH38+KA5QiMvbczm S1Wg== Received: by 10.66.73.133 with SMTP id l5mr5519097pav.74.1343144054562; Tue, 24 Jul 2012 08:34:14 -0700 (PDT) Received: from [192.168.0.106] ([118.186.207.230]) by mx.google.com with ESMTPS id pe8sm12360868pbc.76.2012.07.24.08.34.10 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jul 2012 08:34:13 -0700 (PDT) Date: Tue, 24 Jul 2012 23:35:03 +0800 To: PHP Internals Message-ID: <933A547D13294D10A802336D74E42DFE@gmail.com> X-Mailer: sparrow 1.6.3beta (build 1165) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="500ec0a7_20f88ea6_d5f9" Subject: [RFC] Proposal namespace importing with from syntax From: reeze.xia@gmail.com (Reeze) --500ec0a7_20f88ea6_d5f9 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, internals, I'm proposing a improvement to namespace importing. when using 'use' statement to import many classes, we have to duplicate many times even we are importing from the same namespace. I propose a new syntax to import classes\functions\constant in a single statement. here is the example: The above code should be self-explained. More info could be found at the RFC page and the patch. RFC: https://wiki.php.net/rfc/namespace-importing-with-from PATCH : https://github.com/reeze/php-src/compare/rfc-from-use Any Opinion, suggestion, improvement will be much appreciated. Thanks -- reeze | http://reeze.cn --500ec0a7_20f88ea6_d5f9--