Re: [RFC] Property write visibility

From: Date: Mon, 29 Jun 2020 10:06:00 +0000
Subject: Re: [RFC] Property write visibility
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-110770@lists.php.net to get a copy of this message
I don't dislike the syntax and I think I can get used to it extremely fast, tbh. Are there any other languages that have a similar syntax? Has any other language syntax been considered? On Mon, Jun 29, 2020 at 12:01 PM Max Semenik <maxsem.wiki@gmail.com> wrote: > On Mon, Jun 29, 2020 at 12:42 PM André Rømcke <andre.romcke@gmail.com> > wrote: > > > This enables readonly, write-only and immutable like semantics for PHP's > > properties. > > > > I agree that there is a use case for it, however I don't think the proposed > syntax public:private is intuitive. Maybe we can come up with > something > better? > > > -- > Best regards, > Max Semenik > -- Marco Aurélio Deleu

« previous php.internals (#110770) next »