Re: [RFC][VOTE] Group Use Declarations
| From: | Peter Cowburn | Date: | Wed, 11 Feb 2015 23:50:02 +0000 |
| Subject: | Re: [RFC][VOTE] Group Use Declarations | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82503@lists.php.net to get a copy of this message | ||
Hi Marcio,
On 11 February 2015 at 20:50, Marcio Almada <marcio.web2@gmail.com> wrote:
> Hi internals!
>
> Since no new discussion topics appeared, the voting on the Group Use
> Declarations RFC for PHP7 is now open:
>
> RFC: https://wiki.php.net/rfc/group_use_declarations#votes
> Patch: https://github.com/php/php-src/pull/1005
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 ..." ?
To adapt an example from the RFC:
from Symfony\Component\Console\Question use
ConfirmationQuestion,
ChoiceQuestion as Choice,
OptionQuestion,
Question;
That's my two cents. Best of luck!
>
> As requested I've split the vote into two slightly different syntax
> choices, so be sure to pick the right choice if you are going to vote yes..
> The voting will close in exactly 14 days counting from now.
>
> PS: Aknowledgements to Daniel Ackroyd for reviewing this RFC.
>
> Márcio Almada
> https://github.com/marcioAlmada
>