Re: [PHP-DEV] VCS Account Request: dr0id

2012-10-12 Thread Pierre Joye
hi Jamie, Please post patch or publish pull requests first :) Cheers, On Fri, Oct 12, 2012 at 2:12 AM, Jamie Taylor ja...@dr0id.in wrote: PHP Trunk, developing bug fixes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php --

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Bernhard Schussek
Hi Clint, I would like to urge you again to consider implementing the array access methods. Without that, this very neat feature becomes essentially unusable for modelling one-to-many, many-to-one and many-to-many object relations, as I tried to explain in the previous topic. Objects and

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Lester Caine
Clint Priest wrote: Alright, here is the updated RFC as per discussions for the last few days: https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented If you could read it over, make sure I have all of your concerns correctly addressed and we can leave this open for the two week waiting

Re: [PHP-DEV] [RFC] Propety Accessors v1.1

2012-10-12 Thread Amaury Bouchard
2012/10/12 Clint Priest cpri...@zerocue.com I guess I didn’t see any other support for it from others Well, I get some bad replies (mainly from Andrew), but good ones too. Some people (like Matthew) said it was an elegant syntax... and it is a subset of what the RFC I am proposing would

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Pierre Joye
hi Lester, On Fri, Oct 12, 2012 at 10:22 AM, Lester Caine les...@lsces.co.uk wrote: Clint Priest wrote: Alright, here is the updated RFC as per discussions for the last few days: https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented If you could read it over, make sure I have all of

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Lester Caine
Pierre Joye wrote: hi Lester, On Fri, Oct 12, 2012 at 10:22 AM, Lester Caine les...@lsces.co.uk wrote: Clint Priest wrote: Alright, here is the updated RFC as per discussions for the last few days: https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented If you could read it over, make

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Pierre Joye
On Fri, Oct 12, 2012 at 10:49 AM, Lester Caine les...@lsces.co.uk wrote: Sorry , but if the complexity was any good, why does it need to be changed? Simply scrap the whole lot and get back to a more sane solution. I'm sorry but this is just the whole problem with PHP 'development' ... We know

[PHP-DEV] Closures and type hinting

2012-10-12 Thread Christian Kaps
At the moment it isn't possible to restrict/define the arguments for a closure which is defined as parameter for a method. Please look at this small example. interface Broker { public function scan(Request $request, Closure $onFound); } An implementation of the interface could be as

Re: [PHP-DEV] Closures and type hinting

2012-10-12 Thread Anthony Ferrara
On Oct 12, 2012 10:59 AM, Christian Kaps christian.k...@mohiva.com wrote: At the moment it isn't possible to restrict/define the arguments for a closure which is defined as parameter for a method. Please look at this small example. interface Broker { public function scan(Request

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Lester Caine
Pierre Joye wrote: Sorry , but if the complexity was any good, why does it need to be changed? Simply scrap the whole lot and get back to a more sane solution. I'm sorry but this is just the whole problem with PHP 'development' ... We know that you don't like modern solutions, we really know it

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Nikita Popov
On Fri, Oct 12, 2012 at 7:23 AM, Clint Priest cpri...@zerocue.com wrote: Alright, here is the updated RFC as per discussions for the last few days: https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented If you could read it over, make sure I have all of your concerns correctly

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Cal
Le 12/10/2012 11:48, Nikita Popov a écrit : I've been thinking a bit about the automatic properties again, and noticed that I forgot to name one use case: Asymmetric accessor visibility. Automatic properties may be useful in that context, so that you can write public $foo { get; protected set;

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Kingsquare.nl - Robin Speekenbrink
paf! On vrijdag 12 oktober 2012 13:50:34, Cal wrote: Le 12/10/2012 11:48, Nikita Popov a écrit : I've been thinking a bit about the automatic properties again, and noticed that I forgot to name one use case: Asymmetric accessor visibility. Automatic properties may be useful in that context,

RE: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Christian Stoller
Good hint, Nikita. I like the feature of automatic properies. For the problems with unauthorized access: What about signing automated generated variables, so that they are only accessable through the property? @Lester Caine: This properties do not break backward compatibility. If you do not

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Kingsquare.nl - Robin Speekenbrink
Please ignore me... i'm a n00b and my mail programme F*cked me... my bad Regards, Robin Speekenbrink Kingsquare BV On vrijdag 12 oktober 2012 13:50:34, Cal wrote: Le 12/10/2012 11:48, Nikita Popov a écrit : I've been thinking a bit about the automatic properties again, and noticed that I

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Lester Caine
Christian Stoller wrote: @Lester Caine: This properties do not break backward compatibility. If you do not want to use it, you do not need. I like them because they offer an easy, short and well readable way to protected object or class variables. The problem is not my own use Christian ...

Re: [PHP-DEV] [RFC] Propety Accessors v1.1

2012-10-12 Thread Amaury Bouchard
Le 12 oct. 2012 10:37, Bernhard Schussek bschus...@gmail.com a écrit : As I said, both syntaxes can work together. For example: public:protected $a { get() { return ($this-_prefix . $this-_a); } set($val) { $this-_a = substr($val, 1); } } A shortcoming of this syntax is

Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Levi Morrison
On Thu, Oct 11, 2012 at 11:23 PM, Clint Priest cpri...@zerocue.com wrote: Alright, here is the updated RFC as per discussions for the last few days: https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented If you could read it over, make sure I have all of your concerns correctly

[PHP-DEV] VCS Account Rejected: dr0id rejected by bjori

2012-10-12 Thread PHP Group
Nuked dr0id -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Closures and type hinting

2012-10-12 Thread Stas Malyshev
Hi! Now if you pass a closure to the scan method which doesn't follow the signature of the __invoke method, the engine should throw an error. What do you think? You are trying to take typing way beyond what PHP (or probably any mainstream dynamic language that exists now) provides. There

Re: [PHP-DEV] Closures and type hinting

2012-10-12 Thread Nikita Popov
On Fri, Oct 12, 2012 at 10:58 AM, Christian Kaps christian.k...@mohiva.com wrote: At the moment it isn't possible to restrict/define the arguments for a closure which is defined as parameter for a method. Please look at this small example. interface Broker { public function scan(Request

RE: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Clint Priest
I must have missed taking that part out of the RFC, they would not be needed any more with those keywords being removed. -Original Message- From: Levi Morrison [mailto:morrison.l...@gmail.com] Sent: Friday, October 12, 2012 9:45 AM To: Clint Priest Cc: internals@lists.php.net

RE: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Clint Priest
The problem with that Nikita is that it would need a variable storage location, which would mean a hidden, auto-implemented property. You were dead-set against that from the get go. Keep in mind that property accessors are not properties, real properties will take over the accessor, this

RE: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Clint Priest
Yeah, if you check out the section in the RFC on static properties I give examples of both of these cases, I have not tested the use of static::$zz though come to think of it, I will put it on my todo list. From: Jazzer Dane [mailto:tbprogram...@gmail.com] Sent: Friday, October 12, 2012 12:32

RE: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2

2012-10-12 Thread Clint Priest
Hey Bernhard, I see a few problems with the proposal: 1) If you're adding all of the ArrayAccess functions, what about all of the Iterator functions? How about other SPL aspects, like Countable, etc. 2) The use case can still be handled with an actual object which implements ArrayAccess and