Re: Type locked variables

From: Date: Tue, 15 Nov 2016 23:57:12 +0000
Subject: Re: Type locked variables
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-96903@lists.php.net to get a copy of this message
On 11/15/2016 03:44 PM, Michael Morris wrote:
Perhaps it's time to revisit the idea of allowing variables to have their types locked down. The keywords needed are already reserved. So... string $a = "hello"; int $b = 5; Once declared this way the variable's type won't change unless it gets unset.
++

« previous php.internals (#96903) next »