[PHP-DEV] [RFC][DISCUSSION] ReflectionParameter::getClassName()

2015-01-30 Thread Philip Sturgeon
This RFC adds a new method to ReflectionParameter to allow easy access to a class name in a type hint, avoiding the need to actually load the class and use `get_class()` or `::class`. https://wiki.php.net/rfc/reflectionparameter-getclassname Cheers. -- PHP Internals - PHP Runtime Development Ma

Re: [PHP-DEV] [RFC][DISCUSSION] ReflectionParameter::getClassName()

2015-01-31 Thread Philip Sturgeon
On Sat, Jan 31, 2015 at 3:12 AM, Matteo Beccati wrote: > Hi Phil, > > > On 31/01/2015 05:14, Philip Sturgeon wrote: >> >> This RFC adds a new method to ReflectionParameter to allow easy access >> to a class name in a type hint, avoiding the need to actually load t

Re: [PHP-DEV] [VOTE] Scalar Type Hints

2015-02-09 Thread Philip Sturgeon
On Mon, Feb 9, 2015 at 12:03 PM, Zeev Suraski wrote: >> -Original Message- >> From: Andrea Faulds [mailto:a...@ajf.me] >> Sent: Monday, February 09, 2015 12:44 PM >> To: Zeev Suraski >> Cc: Jordi Boggiano; internals@lists.php.net >> Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints >> >> Hi,

Re: [PHP-DEV] [VOTE] Scalar Type Hints

2015-02-09 Thread Philip Sturgeon
On Mon, Feb 9, 2015 at 1:22 PM, Lars Strojny wrote: > Hi Matteo, > > sorry for the late response. > >> On 07 Feb 2015, at 12:46, Matteo Beccati wrote: >> >> Maybe it's just me, but I didn't quite understand the point you are making >> here. Are you saying that declares are more or less like ini

Re: [PHP-DEV] [RFC][DISCUSSION] ReflectionParameter::getClassName()

2015-02-14 Thread Philip Sturgeon
On Sat, Jan 31, 2015 at 8:27 PM, Andrea Faulds wrote: > >> On 1 Feb 2015, at 01:23, Dan Ackroyd wrote: >> >> On 31 January 2015 at 17:31, Philip Sturgeon wrote: >>> On Sat, Jan 31, 2015 at 3:12 AM, Matteo Beccati wrote: >>>> >>>> 2)

Re: [PHP-DEV] I quit.

2015-02-15 Thread Philip Sturgeon
On Sun, Feb 15, 2015 at 4:21 PM, Andrea Faulds wrote: > Hi everyone, > > For my own reasons, I have decided to cease my involvement with PHP > development. This isn’t a judgement of the PHP community nor the internals > mailing list, you’re all wonderful people and it’s really been a pleasure,

Re: [PHP-DEV] Reviving scalar type hints

2015-02-16 Thread Philip Sturgeon
On Mon, Feb 16, 2015 at 11:42 AM, François Laupretre wrote: > Hi, >> >> De : Arvids Godjuks [mailto:arvids.godj...@gmail.com] >> >> The 0.1 RFC version was mentioned a lot as a good compromise by many >> people >> and had major support. >> Maybe someone competent could pick it up, make necessary a

[PHP-DEV] [RFC] Anonymous Classes

2015-02-24 Thread Philip Sturgeon
Good day! https://wiki.php.net/rfc/anonymous_classes There's a little RFC + patch that Joe Watkins put together, and as before with the ArrayOf RFC, I'll be helping out. So, lets get this discussion rolling. It was declined for PHP 5 some time ago, and has returned now to try for PHP 7. The us

Re: [PHP-DEV] [RFC] Anonymous Classes

2015-02-24 Thread Philip Sturgeon
lar to Closure objects should be introduced. > > Thanks. Dmitry. > > On Tue, Feb 24, 2015 at 4:52 PM, Philip Sturgeon > wrote: 1. You can absolutely assign the instantiated classes to variables. Check out this test in the patch: https://github.com/krakjoe/php-src/compare/anon#diff-

Re: [PHP-DEV] [RFC] Anonymous Classes

2015-02-24 Thread Philip Sturgeon
On Tue, Feb 24, 2015 at 9:58 AM, Florian Anderiasch wrote: > On 02/24/2015 03:29 PM, Dennis Birkholz wrote: >> Am 24.02.2015 um 14:52 schrieb Philip Sturgeon: >>> https://wiki.php.net/rfc/anonymous_classes >> >> I like the idea of having anonymous classes, it is very

Re: [PHP-DEV] [RFC] Anonymous Classes

2015-02-24 Thread Philip Sturgeon
On Tue, Feb 24, 2015 at 9:34 AM, Dmitry Stogov wrote: > > > On Tue, Feb 24, 2015 at 5:19 PM, Philip Sturgeon > wrote: >> >> On Tue, Feb 24, 2015 at 9:10 AM, Dmitry Stogov wrote: >> > I think the proposal is a bit incomplete. >> > It's possible t

Re: [PHP-DEV] [RFC] Anonymous Classes

2015-02-24 Thread Philip Sturgeon
On Tue, Feb 24, 2015 at 10:59 AM, Florian Anderiasch wrote: > On 02/24/2015 04:31 PM, Philip Sturgeon wrote: >> On Tue, Feb 24, 2015 at 9:58 AM, Florian Anderiasch >> wrote: >>> On 02/24/2015 03:29 PM, Dennis Birkholz wrote: >>>> Am 24.02.2015 um 14:52

Re: [PHP-DEV] [RFC] Anonymous Classes

2015-02-24 Thread Philip Sturgeon
On Tue, Feb 24, 2015 at 12:21 PM, Mike Willbanks wrote: > > > On Tue, Feb 24, 2015 at 7:52 AM, Philip Sturgeon > wrote: >> >> Good day! >> >> https://wiki.php.net/rfc/anonymous_classes >> >> There's a little RFC + patch that Joe Watkins put

Re: [PHP-DEV] [RFC] Anonymous Classes

2015-02-24 Thread Philip Sturgeon
On Tue, Feb 24, 2015 at 1:37 PM, S.A.N wrote: > Would have been more useful, inline sintex like JSON: > > $object = > { > 'property': $value, > 'method': function (){...} > }; > > $object->property; > $object->method(); I know what you're saying here, and object literals like this would

Re: [PHP-DEV] [RFC] Anonymous Classes

2015-02-25 Thread Philip Sturgeon
On Tue, Feb 24, 2015 at 2:25 PM, Stanislav Malyshev wrote: > Hi! > >> I like the idea of having anonymous classes, it is very helpful during >> development to just try something out without having the burden of >> creating a new file and a complete class including namespace and use >> declarations

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] Anonymous Classes

2015-03-04 Thread Philip Sturgeon
On Tue, Mar 3, 2015 at 12:03 PM, Robert Stoll wrote: > Hi Philip > >> -Ursprüngliche Nachricht----- >> Von: Philip Sturgeon [mailto:pjsturg...@gmail.com] >> Gesendet: Dienstag, 24. Februar 2015 14:52 >> An: PHP Internals >> Betreff: [PHP-DEV] [R

Re: [PHP-DEV] [RFC] Anonymous Classes

2015-03-06 Thread Philip Sturgeon
Right, this here RFC has been drastically improved. https://wiki.php.net/rfc/anonymous_classes Anyone got any doubts or troubles at this point? It's about 5 days until the vote starts. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Anonymous Classes

2015-03-08 Thread Philip Sturgeon
Stanislav, On Fri, Mar 6, 2015 at 6:42 PM, Stanislav Malyshev wrote: > Hi! > Couple of points to clarify: > > 1. Is the new syntax "new class ..." or just "class ..." and new works > the same? I.e. could you do: > > $foo = class extends Callback { ... } > $bar = new $foo; Nope, none of that. Wra

Re: [PHP-DEV] [RFC] Anonymous Classes

2015-03-08 Thread Philip Sturgeon
Patrick, On Sat, Mar 7, 2015 at 2:22 AM, Patrick Schaaf wrote: > > Am 06.03.2015 20:14 schrieb "Philip Sturgeon" : >> >> Right, this here RFC has been drastically improved. >> >> https://wiki.php.net/rfc/anonymous_classes >> >> Anyone got any

Re: [PHP-DEV] [RFC] Anonymous Classes

2015-03-09 Thread Philip Sturgeon
Matthew, On Sun, Mar 8, 2015 at 11:04 PM, Matthew Leverton wrote: >>> $foo = class extends Callback { ... } >>> $bar = new $foo; >> >> Nope, none of that. Wrap that in a function or clone it perhaps. >> > Are you actively against that functionality? (I don't think it's very > useful, but was wond

[PHP-DEV] [VOTE] [RFC] Anonymous Classes

2015-03-13 Thread Philip Sturgeon
A two week discussion period has been held and there are no outstanding issues. Serialization has been disabled, and generated names have been explained better in the newest version of the RFC https://wiki.php.net/rfc/anonymous_classes The implementation needs to be updated with changes from mas

Re: [PHP-DEV] A plea for unity on scalar types

2015-03-13 Thread Philip Sturgeon
Pavel, On Fri, Mar 13, 2015 at 3:38 PM, Pavel Kouřil wrote: > On Fri, Mar 13, 2015 at 4:45 PM, Anthony Ferrara wrote: >> >> But for today, I firmly believe that the Dual-Mode proposal is the >> only one that stands a chance of passing. I think it's the best chance >> for the language, and it's t

Re: [PHP-DEV] [RFC] Basic Scalar Types

2015-03-13 Thread Philip Sturgeon
On Fri, Mar 13, 2015 at 4:44 PM, Zeev Suraski wrote: >> -Original Message- >> From: Derick Rethans [mailto:der...@php.net] >> Sent: Friday, March 13, 2015 10:34 PM >> To: guilhermebla...@gmail.com; Stelian Mocanita >> Cc: Eli; PHP Internals List >> Subject: Re: [PHP-DEV] [RFC] Basic Scalar

Re: [PHP-DEV] [RFC][PRE-VOTE] Reserving More Types in PHP 7

2015-03-14 Thread Philip Sturgeon
On Sat, Mar 14, 2015 at 7:38 AM, Bob Weinand wrote: >> Am 14.03.2015 um 10:21 schrieb Pavel Kouřil : >> >> On Saturday, March 14, 2015, Levi Morrison wrote: >>> RFC Link: https://wiki.php.net/rfc/reserve_more_types_in_php_7 >>> >>> The proposal has changed from the original. It no longer reserves

Re: [PHP-DEV] A plea for unity on scalar types

2015-03-14 Thread Philip Sturgeon
On Fri, Mar 13, 2015 at 7:02 PM, Arvids Godjuks wrote: > > > пт, 13 Мар 2015, 23:01, Philip Sturgeon : > >> Pavel, >> >> On Fri, Mar 13, 2015 at 3:38 PM, Pavel Kouřil wrote: >> > On Fri, Mar 13, 2015 at 4:45 PM, Anthony Ferrara >> > wrote: >

Re: [PHP-DEV] A plea for unity on scalar types

2015-03-14 Thread Philip Sturgeon
On Sat, Mar 14, 2015 at 7:19 PM, Philip Sturgeon wrote: > On Fri, Mar 13, 2015 at 7:02 PM, Arvids Godjuks > wrote: >> >> >> пт, 13 Мар 2015, 23:01, Philip Sturgeon : >> >>> Pavel, >>> >>> On Fri, Mar 13, 2015 at 3:38 PM, Pavel Kouřil wrot

Re: [PHP-DEV] Voting irregularities

2015-03-15 Thread Philip Sturgeon
On Sun, Mar 15, 2015 at 12:26 PM, Zeev Suraski wrote: >> I am aware of this, but unless I just missed it that site doesn't show >> *when* they got an account. > > None of these accounts are recent as far as I can tell from my email > archive. For the record, with the exception of Eli - with whom

Re: [PHP-DEV] [RFC] Basic Scalar Types

2015-03-15 Thread Philip Sturgeon
On Sun, Mar 15, 2015 at 2:16 PM, Niklas Keller wrote: > 2015-03-15 19:13 GMT+01:00 Levi Morrison : >> I think allowing `null` for an `int` is an error. Converting a null to >> zero on a type boundary is harmful in my opinion. > > I agree, `null` shouldn't be allowed for `int`. > >> -- >> PHP Inter

Re: [PHP-DEV] [RFC] [INFO] Basic Scalar Types

2015-03-15 Thread Philip Sturgeon
On Sun, Mar 15, 2015 at 4:23 PM, Zeev Suraski wrote: >> Sorry, but ... even though your original RFC was very unclear about this, >> everybody went by the "all votes must start by the 15th" interpretation >> that >> has been discussed in that thread. Do you think it's an accident that a >> whoppin

Re: [PHP-DEV] [RFC] [INFO] Basic Scalar Types

2015-03-15 Thread Philip Sturgeon
On Sun, Mar 15, 2015 at 4:44 PM, Zeev Suraski wrote: >> -Original Message- >> From: Philip Sturgeon [mailto:pjsturg...@gmail.com] >> Sent: Sunday, March 15, 2015 10:33 PM >> To: Zeev Suraski >> Cc: Nikita Popov; PHP Internals >> Subject: Re: [PHP-

Re: [PHP-DEV] Voting irregularities

2015-03-15 Thread Philip Sturgeon
One rule I liked when I was part of the FIG was that people can only vote on votes initiated after they became a member. That stops people signing up simply to vote on an RFC which needs more votes either way. I'm not saying that happened, but a simple rule saying "You cannot vote on any RFC start

[PHP-DEV] Only Vote on Votes Initiated After Registration

2015-03-16 Thread Philip Sturgeon
While you can easily question the value or motives of Anthony's post about voting irregularities, some simple improvements can be made which are uncontroversial. I consider this a low hanging fruit, like restricting the sale of firearms to people who are clearly drunk. I mentioned on that other th

Re: [PHP-DEV] Only Vote on Votes Initiated After Registration

2015-03-20 Thread Philip Sturgeon
On Mon, Mar 16, 2015 at 2:59 PM, Stanislav Malyshev wrote: > Hi! > >> when we are fixing the low hanging fruits, please directly put in the >> wiki that the closing time of a vote has to be announced as a UTC time >> so there is no confusion when a day ends. > > Good point. I'd still allow other t

Re: [PHP-DEV] [VOTE] [RFC] Anonymous Classes

2015-03-27 Thread Philip Sturgeon
On Sat, Mar 14, 2015 at 6:33 AM, Nikita Popov wrote: > On Fri, Mar 13, 2015 at 8:33 PM, Philip Sturgeon > wrote: >> >> A two week discussion period has been held and there are no outstanding >> issues. >> >> Serialization has been disabled, and generated na

[PHP-DEV] [RFC][ACCEPTED] Anonymous Classes

2015-03-28 Thread Philip Sturgeon
Hey! Anonymous classes passed the vote, 50 yays and 2 nays (bo). The branch will be merged into master in the next few days. Thank you everyone. Nested classes are coming next. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Test Post

2013-09-11 Thread Philip Sturgeon
Dan Brown and myself have been trying to debug an issue with posting to internals, where we think it just doesn't like custom domained gmail addresses. Here's trying a plain-old gmail account. Phil -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/

Re: [PHP-DEV] Wake up

2013-09-11 Thread Philip Sturgeon
> PHP is a collective mind. Any dictatorship would mean a degradation for it. > If you don't like how it's managed, there is an easy path: > > 1. Earn authority. > 2. Propose a change. > 3. Implement it. > 4. Maintain it. > > Start with 1. Why is earning authority a step in this process? This just

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-13 Thread Philip Sturgeon
On Sun, Jul 13, 2014 at 9:16 AM, Lester Caine wrote: > On 13/07/14 06:22, Stas Malyshev wrote: >> It is very direct specification of >> either strict parameter typing or coercive parameter typing. I don't >> think using confusing terminology helps anything here. I think it was a >> mistake to intr

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-15 Thread Philip Sturgeon
On Mon, Jul 14, 2014 at 11:16 PM, Park Framework wrote: > Maybe we should make two different syntax? > > fun(int $num, array $list) - for strict type compliance > fun((int) $num, (array) $list) - converted to type > > It will be very obvious, and without magic. > > > 2014-07-14 23:23 GMT+03

Re: [PHP-DEV] [VOTE][RFC] Name of Next Release of PHP (again)

2014-07-30 Thread Philip Sturgeon
Good stuff everyone. Glad the vote went through. On Wed, Jul 30, 2014 at 4:27 AM, Julien Pauli wrote: > On Wed, Jul 30, 2014 at 1:43 AM, Andrea Faulds wrote: > >> >> On 23 Jul 2014, at 14:38, Andrea Faulds wrote: >> >> > My sincerest apologies about all the mess earlier and the delay. Both me >