Re: Scalar Type Declaration Syntax Weirdness

From: Date: Tue, 24 Nov 2015 15:52:42 +0000
Subject: Re: Scalar Type Declaration Syntax Weirdness
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-89380@lists.php.net to get a copy of this message
On 11/24/2015 04:42 PM, Theodore Brown wrote:
The difference is that DateTime and \DateTime mean different things inside a namespace. int and \int always mean the same thing, so it seems confusing to allow the latter syntax as if it means something different.
That. And the fact that DateTime, for instance, is a built-in class whereas int is a type (I know that classes are types but you know what I mean).

« previous php.internals (#89380) next »