Re: Final properties
| From: | Quim Calpe | Date: | Mon, 11 Apr 2016 11:17:15 +0000 |
| Subject: | Re: Final properties | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92190@lists.php.net to get a copy of this message | ||
There is a concept in storage devices that fits: Write Once Read Many
(WORM) https://en.wikipedia.org/wiki/Write_once_read_many
final class Value {
public worm $name;
public function __construct(string $name) {
$this->name = $name;
}
}
I'm not aware of any programming language using this term so it's a bit
awkward in that sense...
On Sat, Apr 9, 2016 at 4:54 PM, Niklas Keller <me@kelunik.com> wrote:
> Readonly is already used in the documentation for some things in the DOM
> book. Writeonce sounds strange.
>
> Sebastian Bergmann <sebastian@php.net> schrieb am Sa., 9. Apr. 2016 15:52:
>
> > Am 09.04.2016 um 12:55 schrieb Niklas Keller:
> > > Another possible choice would be "readonly".
> >
> > Rather "writeonce", no?
> >
> >
> > --
> > PHP Internals - PHP Runtime Development Mailing List
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>