Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68526 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11903 invoked from network); 15 Aug 2013 13:12:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Aug 2013 13:12:06 -0000 Authentication-Results: pb1.pair.com header.from=marcello.duarte@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=marcello.duarte@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.178 as permitted sender) X-PHP-List-Original-Sender: marcello.duarte@gmail.com X-Host-Fingerprint: 209.85.212.178 mail-wi0-f178.google.com Received: from [209.85.212.178] ([209.85.212.178:46212] helo=mail-wi0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/21-06453-5A3DC025 for ; Thu, 15 Aug 2013 09:12:06 -0400 Received: by mail-wi0-f178.google.com with SMTP id j17so3078785wiw.5 for ; Thu, 15 Aug 2013 06:12:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=WMNdeqxFb62ltR4DeQMdl0xwfFA8TxUKghU5HqI4Zjk=; b=J1Qaiyvi9cz0cwOgHS3ObyaIknV66Fe/dARgYd/1IXlugIIEDcwKukG4Z2sLHiifN/ mIk40Q8He/D6y4VLPDuqkrBbDI5nUIlbKF5gjH+4gs5rTx4nwGcQxxXgBQk37AHR6Sb7 7FEFcEMT4UxrvzFaT52oEWMtRcx0OKIn2M1PXIO5Sm80id/X9bZT8XHJryFjacxFsYRQ +0UiS2huK62VDFxZhwey64zg1MdWW+/mIHytfHDCj8LyAsCe8Vnb0rz4sE8bzoRJNoyb DlJS1aGEIJbJ2oSm3gz4BLo3/OsYbM0UX9531Fi+GsCJUo9a1HJHsAsRtDNst0k8ggPy PybQ== X-Received: by 10.180.11.233 with SMTP id t9mr1801566wib.41.1376572322936; Thu, 15 Aug 2013 06:12:02 -0700 (PDT) Received: from [192.168.0.15] (cpc9-finc13-2-0-cust191.4-2.cable.virginmedia.com. [82.1.84.192]) by mx.google.com with ESMTPSA id hb2sm2836471wib.0.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Aug 2013 06:12:01 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Thu, 15 Aug 2013 14:11:59 +0100 Cc: Daniel Bingham , Michael Wallner , "internals@lists.php.net" Content-Transfer-Encoding: quoted-printable Message-ID: References: <60BF8DD5-FEEA-47D9-834F-6C7FDEF3B879@wiedler.ch> <6644FE5E-4CBA-4A08-8766-8634CAA4426D@wiedler.ch> To: Igor Wiedler X-Mailer: Apple Mail (2.1084) Subject: Re: [PHP-DEV] [RFC] Importing namespaced functions From: marcello.duarte@gmail.com (Marcello Duarte) Hi, Are there any thoughts regarding importing multiple functions of a = namespace with a wildcard? A use case being, for example, assertions from a testing framework. use (or use function) TestingFramework\Assertions\; // in java * is used for wildcard Regards, Marcello On 15 Aug 2013, at 14:06, Igor Wiedler wrote: > Hi Daniel, >=20 > Thanks for the suggestion. Since it is less straight-forward I would = rather just move forward with the current syntax. I'd hate to see the = proposal rejected because people did not like the syntax. >=20 > Regards, >=20 > Igor >=20 > On Aug 8, 2013, at 10:30 PM, Daniel Bingham = wrote: >=20 >> Hey Igor, >>=20 >> I love the RFC, but how about: >>=20 >> use bar\baz() as baz; >>=20 >> As an alternative to "use function". Still new syntax, but a little = less wordy. I have nothing for "use const", but "use const" feels more = natural to me than "use function" does. >>=20 >> Just an idea for pondering! >>=20 >> Dan >>=20 >>=20 >>=20 >> On Thu, Aug 8, 2013 at 2:44 PM, Michael Wallner wrote: >> On 8 August 2013 14:29, Igor Wiedler wrote: >>> Hi everyone, >>>=20 >>> I just wanted to bump this topic, since there's not been much = feedback during the last few weeks. Comments on the patch are also = welcome. >>>=20 >>> RFC: https://wiki.php.net/rfc/use_function >>> Patch: https://github.com/php/php-src/pull/388 >>>=20 >>=20 >> I like it. It improves the state for non-OOP in PHP. >>=20 >> -- >> Regards, >> Mike >>=20 >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >>=20 >>=20 >=20 >=20 > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20