Re: RFC: C-sharp style property get/set syntax for PHP

From: Date: Wed, 01 Dec 2010 00:15:57 +0000
Subject: Re: RFC: C-sharp style property get/set syntax for PHP
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-50745@lists.php.net to get a copy of this message
>> public property Hours read getHours write setHours; > > I actually like that, though I think we should support the whole > existing semantics, i.e. get/set/isset/unset. And probably keep the > names, so we don't call the same thing both "read" and "get". This doesn't make sense. To call isset() on a property, would be to ask if the property itself exists. But once defined, a property always exists (think of methods, for example). (Sorry for sending again Stas, I forgot to reply all) - Dennis

« previous php.internals (#50745) next »