Re: [RFC] [PROPOSAL] Immutable/final/readonly properties

From: Date: Sat, 15 Feb 2020 14:34:58 +0000
Subject: Re: [RFC] [PROPOSAL] Immutable/final/readonly properties
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-108598@lists.php.net to get a copy of this message
Hi Rowan, I'm also on the opinion that making the mixed type the (implicit) default is not a good idea. However, I believe the uninitialized state is useful, what's more, it was unavoidable in order to properly support non-nullable object properties. But I don't want to make a case for this decision as it's too late now. :) > Immutable properties, and eventually immutable objects, however, are something I'd be very interested to see. I am happy to hear! Máté Kocsis . Rowan Tommins <rowan.collins@gmail.com> ezt írta (időpont: 2020. febr. 15., Szo, 0:07): > On 14/02/2020 13:42, Máté Kocsis wrote: > > Maybe only if our long-term goal would be to deprecate/remove > > non-typed properties and implicit initialization altogether in favour of > > mixed type and implicit uninitialization... > > > Can I just leave an "ugh, please no" on this part. I remain of the > opinion that the introduction of the "uninitialised" state was a huge > mistake, and we should be actively working towards making it > unnecessary, not building more features that rely on it. > > > Immutable properties, and eventually immutable objects, however, are > something I'd be very interested to see. > > > Regards, > > -- > Rowan Tommins (né Collins) > [IMSoP] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#108598) next »