Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-25 Thread Philip Sturgeon
On Wed, Feb 25, 2015 at 4:13 PM, Marcio Almada wrote: > Hi, > > The voting for Group Use Declarations is now closed with 39 "yes" and 19 > "no" votes. According to the established 2/3 majority requirement, it > passed. > > https://wiki.php.net/rfc/group_use_declarations#votes > > If you voted "no"

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-25 Thread Marcio Almada
Hi, The voting for Group Use Declarations is now closed with 39 "yes" and 19 "no" votes. According to the established 2/3 majority requirement, it passed. https://wiki.php.net/rfc/group_use_declarations#votes If you voted "no": your feedback is still as important as before, specially in case you

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-25 Thread Marcio Almada
Hi 2015-02-25 8:45 GMT-03:00 Pascal MARTIN, AFUP : > > > We've discussed this RFC with other people of AFUP, and even though there > have been quite a few mails exchanged, I'm sorry to say we didn't reach a > consensus -- and, as such, are neither -1 nor +1. > > Trying to summarize a few points:

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-25 Thread Pascal MARTIN, AFUP
Le 11/02/2015 21:50, Marcio Almada a écrit : Since no new discussion topics appeared, the voting on the Group Use Declarations RFC for PHP7 is now open: Hi, We've discussed this RFC with other people of AFUP, and even though there have been quite a few mails exchanged, I'm sorry to say we di

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-24 Thread Marcio Almada
Hi internais, This is just a friendly reminder that, according the the previously established voting duration of 14 days, the voting for Group Use declarations will close in exactly 17 hours counting from now. Thanks.

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-19 Thread Marcio Almada
2015-02-12 20:55 GMT-03:00 Stelian Mocanita : > > > >> I could compromise to send pull requests and update some of these tools >> (at >> least the open source ones) in time for PHP7 release. >> > > Print screen taken, will hold you to your words. > > Please do ;) If the RFC passes I'll be happy to

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-14 Thread Marcio Almada
Hi, Ralph 2015-02-14 12:43 GMT-03:00 Ralph Schindler : > > 1. We aimed for maximum readability. The block syntax delimited with >> bracket `{` ... `}` pairs is definitely easier to keep track in >> comparison with a colon and semicolon `:`...`;` >> >> 2. A block delimited by a double colon and a

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-14 Thread Marcio Almada
Hi Markus, > > - cognitively *I* can much easier glance through to "find" something. > Because my eyes just have to scan up/down on the same character column > That's very subjective. Have you seen the use case regardless of patch diffs on the RFC? Or the other examples given? > - It's not alph

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-14 Thread 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\

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-14 Thread Marcio Almada
2015-02-13 13:50 GMT-03:00 Nikita Popov : > On Fri, Feb 13, 2015 at 5:24 PM, Nikita Popov > wrote: > >> On Wed, Feb 11, 2015 at 9:50 PM, Marcio Almada >> wrote: >> >>> Hi internals! >>> >>> Since no new discussion topics appeared, the voting on the Group Use >>> Declarations RFC for PHP7 is now

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-14 Thread Ralph Schindler
1. We aimed for maximum readability. The block syntax delimited with bracket `{` ... `}` pairs is definitely easier to keep track in comparison with a colon and semicolon `:`...`;` 2. A block delimited by a double colon and a semicolon `:` `;` is NOT yet part of any structure from the PHP. Int

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-14 Thread Marcio Almada
Hi, Lester >> Can't we restore the simple way of working in PHP7 > >> where it does not need to wrap around other things quite so closely? > > > > Hi Lester, > > > > This way if doing things on php didn't go anywhere, people just stopped > > using it because they saw better alternatives. > > I cou

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-14 Thread Lester Caine
On 13/02/15 21:16, Nikita Nefedov wrote: >> Can't we restore the simple way of working in PHP7 >> where it does not need to wrap around other things quite so closely? > > Hi Lester, > > This way if doing things on php didn't go anywhere, people just stopped > using it because they saw better alte

RE: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread François Laupretre
Hi, > > I think this feature would be especially important if PHP gets function > autoloading (which it may yet gain in PHP 7 - a certain someone has been > working on it). If someone is working on function/constant autoloading, let me know, as I have a 100% BC RFC ready for this. I don't publis

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Marcio Almada
Hi, Ralph The current namespace implementation is there to group code, which is > already does fairly successfully. > > I have to wonder if it is PHPStorm, IDE's and the like that have > "encouraged" people to only _use_ class names instead of a particular part > of a namespace (even if it is up t

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Ralph Schindler
You could very well argue that this is what relative syntax is for: use PhpParser\NodeVisitorAbstract; use PhpParser\Error; use PhpParser\Node; use PhpParser\Node\Stmt; use PhpParser\Node\Expr; then foo(Expr\New_ $expr) That is even more readable and cleaner to read. +1 The current namesp

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Nikita Nefedov
On 13 Feb 2015 22:31, "Lester Caine" wrote: > Can't we restore the simple way of working in PHP7 > where it does not need to wrap around other things quite so closely? Hi Lester, This way if doing things on php didn't go anywhere, people just stopped using it because they saw better alternatives

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Lester Caine
On 13/02/15 17:46, Sebastian B.-Hagensen wrote: >>> I can’t say I miss the days of putting everything in the global namespace. >>> Makes it impossible to use two libraries with conflicting function names. >> > >> > Well one fix would be to have all the namespace stuff in the math.php >> > file? Al

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Marcio Almada
Hi, Yasuo I think {} is better than []. > Using array operator for this seems a little strange to me. > I think this syntax is more like with block, not array. > > Regards, > Thanks for supporting the sintax choice, we tried a plethora of possibilities during research phase and "{" "}" seemed the

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Benjamin Eberlei
On Fri, Feb 13, 2015 at 5:50 PM, Nikita Popov wrote: > On Fri, Feb 13, 2015 at 5:24 PM, Nikita Popov > wrote: > > I'd like to follow up with another point. I've seen multiple people claim > that code that requires so many "use"s that this proposal becomes relevant > violates the single responsib

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Pierre Joye
On Feb 13, 2015 8:41 AM, "Andrea Faulds" wrote: > > Hey, > > > On 13 Feb 2015, at 16:24, Nikita Popov wrote: > > > > I'm in favor of this RFC. Honestly I don't really understand the negativity > > it is getting around here. > > > > The ability to import multiple items from one namespace is a > >

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Sebastian B.-Hagensen
Hi, 2015-02-13 18:37 GMT+01:00 Lester Caine : > On 13/02/15 17:27, Andrea Faulds wrote: But with Marcio’s proposal, we could instead write this: >> >>use function SomeLibrary\Math\{sin, cos, tan, degrees, radius}; >>> > >>> > Well it used to be simply ... >>> > >>> > require Som

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Lester Caine
On 13/02/15 17:27, Andrea Faulds wrote: >>> But with Marcio’s proposal, we could instead write this: >>> >> >>> >>use function SomeLibrary\Math\{sin, cos, tan, degrees, radius}; >> > >> > Well it used to be simply ... >> > >> > require SomeLibrary\math.php; > I can’t say I miss the days of p

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Andrea Faulds
> On 13 Feb 2015, at 17:18, Lester Caine wrote: > > On 13/02/15 16:41, Andrea Faulds wrote: >> But with Marcio’s proposal, we could instead write this: >> >>use function SomeLibrary\Math\{sin, cos, tan, degrees, radius}; > > Well it used to be simply ... > > require SomeLibrary\math.php;

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Lester Caine
On 13/02/15 16:41, Andrea Faulds wrote: > But with Marcio’s proposal, we could instead write this: > > use function SomeLibrary\Math\{sin, cos, tan, degrees, radius}; Well it used to be simply ... require SomeLibrary\math.php; -- Lester Caine - G8HFL - Contact -

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Nikita Popov
On Fri, Feb 13, 2015 at 5:24 PM, Nikita Popov wrote: > On Wed, Feb 11, 2015 at 9:50 PM, Marcio Almada > 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_dec

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Andrea Faulds
Hey, > On 13 Feb 2015, at 16:24, Nikita Popov wrote: > > I'm in favor of this RFC. Honestly I don't really understand the negativity > it is getting around here. > > The ability to import multiple items from one namespace is a > well-established feature you'll find in many languages employing s

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Nikita Popov
On Wed, Feb 11, 2015 at 9:50 PM, Marcio Almada 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

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-13 Thread Andrey Andreev
Hi, On Fri, Feb 13, 2015 at 2:33 AM, Netroby wrote: > For Human type experience, {} is harder than () to type, see your > keyboard, can you easier type {} or easier type () > > I hate {} > > If you like to use {} as the group symbols, i would not like it. > > It hurts my fingers. > If you look

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-12 Thread Yasuo Ohgaki
Hi Marcio, I send this because use of array operator has some popularities at least. On Thu, Feb 12, 2015 at 11:25 PM, Marcio Almada wrote: > > Yup sure. We are going to vote yes (behind my nickname). > > However, while I agree with all your arguments, we have more syntax and > more semantics,

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-12 Thread Marcio Almada
Hi, > I like use Foo\Bar\(Baz, Qux); > For Human type experience, {} is harder than () to type, see your > keyboard, can you easier type {} or easier type () > I hate {} > If you like to use {} as the group symbols, i would not like it. > It hurts my fingers. Your suggested syntax was cons

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-12 Thread Sebastian B.-Hagensen
Hi, 2015-02-13 1:33 GMT+01:00 Netroby : > For Human type experience, {} is harder than () to type, see your > keyboard, can you easier type {} or easier type () That depends on your keyboard and its configuration and might not be true for the majority of php users. > I hate {} > > If you like t

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-12 Thread Netroby
For Human type experience, {} is harder than () to type, see your keyboard, can you easier type {} or easier type () I hate {} If you like to use {} as the group symbols, i would not like it. It hurts my fingers. Appreciate your time. Netroby 2015-02-12 17:55 GM

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-12 Thread Netroby
I like use Foo\Bar\(Baz, Qux); Appreciate your time. Netroby 2015-02-12 17:55 GMT+08:00 Ivan Enderlin @ Hoa : > Hi Marcio, > > Thanks for the RFC! > We discussed a little bit with the Hoa [1]'s and fruux [2]'s community and > we have a question. Why not pretending

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-12 Thread Stelian Mocanita
On Fri, Feb 13, 2015 at 12:13 AM, Marcio Almada wrote: > Hi Stellan, > > >Hello Marcio, > > I am inclined to vote no for a couple of reasons: > > > 1. This is not a BC-break, I would move the vote to PHP 7.1. The > reasoning behind this is that the tools in the ecosystem will have a lot > > of wo

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-12 Thread Marcio Almada
Hi Stellan, >Hello Marcio, > I am inclined to vote no for a couple of reasons: > 1. This is not a BC-break, I would move the vote to PHP 7.1. The reasoning behind this is that the tools in the ecosystem will have a lot > of work to get on par with PHP 7 (talking here about stuff like phpmd, phpcp

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-12 Thread Stelian Mocanita
Hello Marcio, I am inclined to vote no for a couple of reasons: 1. This is not a BC-break, I would move the vote to PHP 7.1. The reasoning behind this is that the tools in the ecosystem will have a lot of work to get on par with PHP 7 (talking here about stuff like phpmd, phpcpd, phploc, newrelic

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-12 Thread reeze
Definitely +1 for me. That what I proposed before. you make it happened ;-) On 12 February 2015 at 22:25, Marcio Almada wrote: > > Yup sure. We are going to vote yes (behind my nickname). > > However, while I agree with all your arguments, we have more syntax and > more semantics, it's kind of c

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-12 Thread Marcio Almada
> Yup sure. We are going to vote yes (behind my nickname). > However, while I agree with all your arguments, we have more syntax and more semantics, it's kind of confusing. > But it's a small one, > so +1 for us. I bet there is no way to add such a feature without adding at least a small amount of

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-12 Thread Ivan Enderlin @ Hoa
On 12/02/15 14:21, Marcio Almada wrote: Thanks for the RFC! We discussed a little bit with the Hoa [1]'s and fruux [2]'s community and we have a question. Why not pretending we have an array of symbols, something like: use Foo\Bar\[Baz, Qux]; instead of use Foo\Bar\{Baz, Qux}; This is a

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-12 Thread Marcio Almada
> Thanks for the RFC! > We discussed a little bit with the Hoa [1]'s and fruux [2]'s community and we have a question. > Why not pretending we have an array of symbols, something like: >use Foo\Bar\[Baz, Qux]; > instead of >use Foo\Bar\{Baz, Qux}; > This is a list vs. block debate. Whil

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-12 Thread Ivan Enderlin @ Hoa
Hi Marcio, Thanks for the RFC! We discussed a little bit with the Hoa [1]'s and fruux [2]'s community and we have a question. Why not pretending we have an array of symbols, something like: use Foo\Bar\[Baz, Qux]; instead of use Foo\Bar\{Baz, Qux}; This is a list vs. block debate.

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-11 Thread Marcio Almada
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 *

Re: [PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-11 Thread Peter Cowburn
Hi Marcio, On 11 February 2015 at 20:50, Marcio Almada 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/p

[PHP-DEV][RFC][VOTE] Group Use Declarations

2015-02-11 Thread Marcio Almada
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 As requested I've split the vote into two slightly different syntax