Re: [PHP-DEV] [RFC Discussion] Typed Properties

2016-03-19 Thread Lee Davis
Hi Joe, > Accessing the property before it was unset though, as it always did, > attempts to read the default value (null). > > We haven't changed any of that ... > Yes, you're right, this is exactly how it currently behaves : https://3v4l.org/YpfYe (apologies for not checking this first). Stil

Re: [PHP-DEV] [RFC Discussion] Typed Properties

2016-03-19 Thread Lee Davis
Hi all, first up, major thanks to both Joe and Phil for putting this together. I'm fully behind the concept of typed properties and think it would be a great feature to have in the language. I have a few points I'd like to make on the current implementation being proposed. 1) There's an issue

[PHP-DEV] Allowing static as a return type

2016-03-01 Thread Lee Davis
Hi Internals, whilst recently playing with return type hints on PHP 7 I noticed that "static" cannot be used as a valid return type. I'm not entirely sure whether this has been purposely prevented or not. https://3v4l.org/LEXis The behaviour works it's just a parse error that's stopping it. It

Re: [PHP-DEV] About declare(strict_types = 1)

2015-03-16 Thread Lee Davis
On Mon, Mar 16, 2015 at 11:33 AM, Yasuo Ohgaki wrote: > Hi Derick, > > On Mon, Mar 16, 2015 at 8:18 PM, Derick Rethans wrote: > > > On Mon, 16 Mar 2015, Xinchen Hui wrote: > > > > > On Mon, Mar 16, 2015 at 5:00 PM, Pierre Joye > > wrote: > > > > > > > > On Mar 16, 2015 4:29 PM, "Xinchen Hui" w

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

2015-03-11 Thread Lee Davis
Hi Phil. I really like this feature and am keen to see it go in. Developers often create classes (which are typically new files) just to extend and implement a small method. This feature could see codebases become much lighter. So a massive thanks for your and Joe’s efforts on this. I have tw

Re: [PHP-DEV] Use behavior thoughts

2015-03-06 Thread Lee Davis
Hi Anthony. This issue that has plagued me in the past, specifically with the use of traits: Error: http://3v4l.org/VFguK OK: http://3v4l.org/73b86 Although when combined with opcache does causes very confusing behaviour, I do worry that removing the error altogether may make it worse fo

Re: [PHP-DEV] foreach() for strings

2011-06-20 Thread Lee davis
I think this would be quite a useful feature, and am In favor of it. However, I think caution should be taken when shifting array utilities out of their remit and allowing them to manipulate / traverse other data types. You may see the floodgates opening for more request to adapt array functions fo