Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82507 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3141 invoked from network); 12 Feb 2015 00:20:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2015 00:20:00 -0000 Authentication-Results: pb1.pair.com header.from=marcio.web2@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=marcio.web2@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.45 as permitted sender) X-PHP-List-Original-Sender: marcio.web2@gmail.com X-Host-Fingerprint: 209.85.215.45 mail-la0-f45.google.com Received: from [209.85.215.45] ([209.85.215.45:42033] helo=mail-la0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/66-02515-EA1FBD45 for ; Wed, 11 Feb 2015 19:19:58 -0500 Received: by labgf13 with SMTP id gf13so6880508lab.9 for ; Wed, 11 Feb 2015 16:19:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=uZCjsc6yRg0OE7co1X3itHgObSWtH0oKEu+7xo2f2qo=; b=CeT59mgFdMPibdPMv39S0tKpEuigPfdY2PtMwPfuzeccuGckhlzNCpxRU7yNoHcjty EZekBtTi7FOT40BC7i4I5x69Q8owVTWUok82oVRNNmdTLRQAohRDYSeTh9MK9UM2NATz CchSxc9L1XnpVwiulEvFTBE7zNRWy+iffYiGhXR6QbqsdyBVoE1BkTC7FTO1vjDxnhQa yWnqp95BS8Lwq8sCwEM6UiGA8xbTvTIx1/GOkNnV6hZ7cS9jKy70+JzKOlJeL44Kude4 i7Q8tCovEvGtZCTNYA4mLi9uZensiAIyV5D0t0ML+lg5OF+CatGjN2DSjcr8EaK1FHGM 0oQQ== X-Received: by 10.112.9.38 with SMTP id w6mr858040lba.113.1423700395015; Wed, 11 Feb 2015 16:19:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.21.101 with HTTP; Wed, 11 Feb 2015 16:19:34 -0800 (PST) Reply-To: marcio3w@gmail.com In-Reply-To: References: Date: Wed, 11 Feb 2015 21:19:34 -0300 Message-ID: To: Peter Cowburn Cc: PHP internals Content-Type: multipart/alternative; boundary=001a1134deb84fc54a050ed914e4 Subject: Re: [PHP-DEV][RFC][VOTE] Group Use Declarations From: marcio.web2@gmail.com (Marcio Almada) --001a1134deb84fc54a050ed914e4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Peter, > I like the idea (reducing the repeated namespace parts), but am not too keen on the syntax. > If I may offer a hastily thought out, and probably terrible, idea... how about something like "from prefix use ..." ? [...] > That's my two cents. Some people suggested the *"from* ... *use *..." syntax similar to Python, but this proposal would require the "from" keyword to be reserved. Also, during research phase most people preferred the block syntax similar to the trait conflict resolution syntax. So, in resume the current proposal seems the most appropriate for PHP because: 1. It looks a lot like the already implemented traits conflict resolution 2. It doesn't require to reserve new keywords 3. It's a very readable choice 4. During research phase it became clear that most people preferred it over the alternatives (including your suggestion) > Best of luck! Thank you! Sincerely, M=C3=A1rcio Almada --001a1134deb84fc54a050ed914e4--