[PHP-DEV] [RFC] [Discussion] Namespaces in Core

2017-06-03 Thread Fleshgrinder
Next promised RFC (and the last one for this weekend): https://wiki.php.net/rfc/namespaces-in-core I am unsure about whether we should avoid the usage of abbreviations for things like language (lang), standard (std), and utility (util). I think it is not necessary to write them out fully, but, we

Re: [PHP-DEV] RFC proposal

2017-06-03 Thread Johannes Schlüter
On Fr, 2017-06-02 at 13:12 -0400, Michael Morris wrote: > What about foreach by reference, which is honestly the only time I > use referencing anymore... > > foreach ($array as $key => &$value) { >   $value = someOp($value); > } > > Is this also bad? If someOp() takes parameters by value this co

Re: [PHP-DEV] Why hashtable keeps insertion order by default ?

2017-06-03 Thread Thomas Hruska
On 6/3/2017 1:31 AM, Pawel Por wrote: Hi, AFAIK the hashtable in PHP by default keeps the order in which the elements are inserted. Could you please write me why it keeps the insertion order by default ? Thanks in advance for clarification. Because it is a brilliant, high performance solution

Re: [PHP-DEV] [RFC] [Discussion] Class Naming

2017-06-03 Thread Fleshgrinder
On 6/3/2017 4:07 PM, Rowan Collins wrote: > Hi Richard, > > I think 3-way votes are potentially confusing, and saying it's a > "simple 50%+1 majority vote" doesn't really make sense if it's not a > yes/no question. > > What if the vote splits 49/48/3? Does "do nothing" win because the > other opt

Re: [PHP-DEV] [RFC] [Discussion] Class Naming

2017-06-03 Thread Rowan Collins
On 3 June 2017 13:03:20 BST, Fleshgrinder wrote: >As previously announced, I would like to set an end to these >discussions >in the community: > >https://wiki.php.net/rfc/class-naming Hi Richard, I think 3-way votes are potentially confusing, and saying it's a "simple 50%+1 majority vote" doesn

Re: [PHP-DEV] Class Naming in Core

2017-06-03 Thread Steven Hilder
Tony, On 30 May 2017 11:21:38 +0300, Tony Marston wrote: they should not be forced to change just because some nerd has made a unilateral decision which is way above his pay grade On 30 May 2017 16:18:21 +0300, Tony Marston wrote: just because someone that there should now be a standard

Re: [PHP-DEV] [RFC] [Discussion] Class Naming

2017-06-03 Thread Fleshgrinder
On 6/3/2017 3:20 PM, Dan Ackroyd wrote: > On 3 June 2017 at 13:03, Fleshgrinder wrote: >> https://wiki.php.net/rfc/class-naming > > For the RFC to be precise, it probably needs to specify the rules for > initialisations explicitly. > > Presumably the same as acronyms? > > cheers > Dan > Thank

Re: [PHP-DEV] [RFC][Discussion] Add support for stream-wrapped URLs in opcode cache

2017-06-03 Thread Dan Ackroyd
On 2 June 2017 at 17:31, François Laupretre wrote: > Hi Dan, > > Thanks for your comments. Both are fixed now. > Awesome. btw it's my belief that very boring technical discussions about RFC pull requests are best done via the github comments, both to reduce the noise on this list and also so tha

Re: [PHP-DEV] [RFC] [Discussion] Class Naming

2017-06-03 Thread Dan Ackroyd
On 3 June 2017 at 13:03, Fleshgrinder wrote: > https://wiki.php.net/rfc/class-naming For the RFC to be precise, it probably needs to specify the rules for initialisations explicitly. Presumably the same as acronyms? cheers Dan -- PHP Internals - PHP Runtime Development Mailing List To unsubsc

[PHP-DEV] [RFC] [Discussion] Class Naming

2017-06-03 Thread Fleshgrinder
As previously announced, I would like to set an end to these discussions in the community: https://wiki.php.net/rfc/class-naming -- Richard "Fleshgrinder" Fussenegger signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] [RFC] [VOTE] Object typehint RFC

2017-06-03 Thread Nikita Popov
On Wed, May 17, 2017 at 12:34 PM, Michał Brzuchalski wrote: > Hi everyone, > > I would like to put Object Type RFC up to a vote for inclusion in PHP 7.2. > > Previously there were some concerns about adding named types in the future, > but we came to the conclusion that each of them can be solved

Re: [PHP-DEV] Why hashtable keeps insertion order by default ?

2017-06-03 Thread li...@rhsoft.net
Am 03.06.2017 um 10:31 schrieb Pawel Por: AFAIK the hashtable in PHP by default keeps the order in which the elements are inserted. Could you please write me why it keeps the insertion order by default ? Thanks in advance for clarification. beause when you create a array ['a', 'b']; you don't

[PHP-DEV] Why hashtable keeps insertion order by default ?

2017-06-03 Thread Pawel Por
Hi, AFAIK the hashtable in PHP by default keeps the order in which the elements are inserted. Could you please write me why it keeps the insertion order by default ? Thanks in advance for clarification. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.ph

Re: [PHP-DEV] Class Naming in Core

2017-06-03 Thread li...@rhsoft.net
Am 03.06.2017 um 10:10 schrieb Tony Marston: "Dan Ackroyd" wrote in message news:ca+kxmuromvy6vb0ykd6ejqu8askxro2x6f9y5i9+cxfjsj-...@mail.gmail.com... On 29 May 2017 at 23:13, Fleshgrinder wrote: Hey guys! People are complaining over at Reddit [1] While the "STD" is slightly humorous, i

Re: [PHP-DEV] Class Naming in Core

2017-06-03 Thread Tony Marston
"Dan Ackroyd" wrote in message news:ca+kxmuromvy6vb0ykd6ejqu8askxro2x6f9y5i9+cxfjsj-...@mail.gmail.com... On 29 May 2017 at 23:13, Fleshgrinder wrote: Hey guys! People are complaining over at Reddit [1] While the "STD" is slightly humorous, it is unneeded verbosity, and will lead to pointl

Re: [PHP-DEV] Class Naming in Core

2017-06-03 Thread Tony Marston
"Dan Ackroyd" wrote in message news:ca+kxmutdqv4pg7yqq10p2vfdu4cyv0cwe1d7xwbvcio44pt...@mail.gmail.com... On 2 June 2017 at 08:56, Tony Marston wrote: I object to some young nerd arriving on the scene Please don't make derogatory comments. A mildly derogatory comment which indicates the