Re: [PHP-DEV] Patch: getters/setters syntax Implementation

2011-12-07 Thread Will Fitch
The difference being *where* the functionality gets mapped. It's not about making something look like something else, it's about requiring more userspace definitions. Functionality within get {} and set {} can (and should IMO) be implemented outside of userspace code. Whether that means

Re: [PHP-DEV] Patch: getters/setters syntax Implementation

2011-12-07 Thread Rasmus Schultz
I have no opinion about how it gets implemented under the hood - I thought we were just discussing the syntax. I most likely don't know enough about the innards of PHP it carry on that discussion. But by userspace definitions, are you referring to the fact that getters and setters would compile

Re: [PHP-DEV] Patch: getters/setters syntax Implementation

2011-12-07 Thread Will Fitch
I'm saying that when you define an accessor, the body of the get/set functionality is contained within get {} and set {}, just like C#. I'm referencing your suggestion to automatic backing fields. There's no need for the backup. Reflection for accessors should be treated the same as the

RE: [PHP-DEV] Patch: getters/setters syntax Implementation

2011-12-04 Thread Clint M Priest
: Re: [PHP-DEV] Patch: getters/setters syntax Implementation hi Clint! Thanks for your work so far! On Sun, Dec 4, 2011 at 1:33 AM, Clint M Priest cpri...@zerocue.com wrote: What are the next steps to get this added to some future release? Let discuss the implementation and how it works

Re: [PHP-DEV] Patch: getters/setters syntax Implementation

2011-12-04 Thread Christian Kaps
-Original Message- From: Pierre Joye [mailto:pierre@gmail.com] Sent: Sunday, December 04, 2011 4:50 AM To: Clint M Priest Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Patch: getters/setters syntax Implementation hi Clint! Thanks for your work so far! On Sun, Dec 4, 2011 at 1:33 AM

Re: [PHP-DEV] Patch: getters/setters syntax Implementation

2011-12-04 Thread Pierre Joye
hi, Please attach the patch (and any future version) to the RFC and to https://bugs.php.net/bug.php?id=49526, so it won't be lost if your sever goes down. Thanks! -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] Patch: getters/setters syntax Implementation

2011-12-04 Thread Felipe Pena
, December 04, 2011 4:50 AM To: Clint M Priest Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Patch: getters/setters syntax Implementation hi Clint! Thanks for your work so far! On Sun, Dec 4, 2011 at 1:33 AM, Clint M Priest cpri...@zerocue.com wrote: What are the next steps to get

Re: [PHP-DEV] Patch: getters/setters syntax Implementation

2011-12-04 Thread Felipe Pena
[mailto:pierre@gmail.com] Sent: Sunday, December 04, 2011 4:50 AM To: Clint M Priest Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Patch: getters/setters syntax Implementation hi Clint! Thanks for your work so far! On Sun, Dec 4, 2011 at 1:33 AM, Clint M Priest cpri...@zerocue.com

RE: [PHP-DEV] Patch: getters/setters syntax Implementation

2011-12-04 Thread Clint M Priest
: Pierre Joye [mailto:pierre@gmail.com] Sent: Sunday, December 04, 2011 4:50 AM To: Clint M Priest Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Patch: getters/setters syntax Implementation hi Clint! Thanks for your work so far! On Sun, Dec 4, 2011 at 1:33 AM, Clint M Priest cpri

[PHP-DEV] Patch: getters/setters syntax Implementation

2011-12-03 Thread Clint M Priest
Per RFC: https://wiki.php.net/rfc/propertygetsetsyntax Alright, getters/setters has been built. This is my first patch to the php core. Here is what has been implemented: http://www.clintpriest.com/patches/accessors_v1.patch (patch against trunk) Asymmetrical getters/setters syntax: