RE: [PHP-DEV] Re: Patch: getters/setters syntax Implementation
| From: | Clint M Priest | Date: | Tue, 06 Dec 2011 14:14:21 +0000 |
| Subject: | RE: [PHP-DEV] Re: Patch: getters/setters syntax Implementation | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56804@lists.php.net to get a copy of this message | ||
I prefer C# syntax myself but thinking about it, supporting both syntax's would be fairly
trivial to add... Thoughts on that?
-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Tuesday, December 06, 2011 5:47 AM
To: Clint M Priest
Cc: Rasmus Schultz; internals@lists.php.net
Subject: Re: [PHP-DEV] Re: Patch: getters/setters syntax Implementation
On Tue, Dec 6, 2011 at 4:23 AM, Clint M Priest <cpriest@zerocue.com> wrote:
> I believe the attempt with the RFC was to mimic the syntax that C#
> went with, the RFC is here:
> https://wiki.php.net/rfc/propertygetsetsyntax
C# like setter/getter is definitely what I would like to have in PHP, it is a very clear and known
syntax, while being features rich.
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org