Re: Re: [RFC] Reserving More Types in PHP 7

From: Date: Tue, 28 Apr 2015 12:49:33 +0000
Subject: Re: Re: [RFC] Reserving More Types in PHP 7
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-85990@lists.php.net to get a copy of this message
Hi François, Am 28.04.2015 um 13:32 schrieb François Laupretre: > - In 7.0, introduce the 'object' (accepts any object instance) and > 'object(ClassName)' (similar to the bare 'ClassName') type hint syntaxes. I find this variant extremely nonintuitive and it conflicts with the behavior of every relevant language (Java, C++) that has classes and simple types. I would like PHP to make all class/trait/interface names case-sensitive and use only lower-case names for the scalar type hints (same for object, array, etc.). This would solve most problems. Class names are kind of case sensitive in applications that rely on autoloading on platforms with case sensitive file systems. Greets Dennis

« previous php.internals (#85990) next »