Re: [RFC] Readonly Properties

From: Date: Fri, 24 Oct 2014 23:39:32 +0000
Subject: Re: [RFC] Readonly Properties
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-78319@lists.php.net to get a copy of this message
2014-10-24 7:09 GMT+02:00 Xinchen Hui <laruence@php.net>: > so you prefer to expose the name of the property anywhere? > > let's say you expose a readonly int value name iSize.. > > but later, the value also need to be a double, > > then you also prefer add another dval? (since you can not simple > change ival name, since it was exposed) That is purely a naming decision, not something that should cause the actual design of a language to not be available and even then, what you are saying seems like a very edge case to me and I have a hard time trying to understand if as I understand it, is your argument against this feature. -- regards, Kalle Sommer Nielsen kalle@php.net

« previous php.internals (#78319) next »