Re: Re: internals Digest 20 Oct 2012 09:49:39 -0000 Issue 2820
| From: | Steve Clay | Date: | Sat, 20 Oct 2012 18:56:27 +0000 |
| Subject: | Re: Re: internals Digest 20 Oct 2012 09:49:39 -0000 Issue 2820 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-63569@lists.php.net to get a copy of this message | ||
On 10/20/12 10:45 AM, Rasmus Schultz wrote:
Just drop the idea of read-only altogether, please - it's so marginally useful in the first place, unconventional compared to other languages, andRead-only is perfect for value objects, where the alternative is a bunch of protected props and getters: $color = new Color(255, 0, 0); $color->r; Steve -- http://www.mrclay.org/