Syntactical inconsistency with new group use syntax

From: Date: Tue, 18 Aug 2015 20:47:37 +0000
Subject: Syntactical inconsistency with new group use syntax
Groups: php.internals 
Request: Send a blank email to internals+get-87774@lists.php.net to get a copy of this message
Hi everyone, while playing around with the new group use syntax, I stumbled upon an inconsistency of which I'm not sure whether or not it is expected. For the "classic" syntax, while technically pointless, a leading \ for the name is considered valid and works identical to a line without it: <?php namespace foo; use \some\bar; use some\baz; With the new group syntax, the version with a leading \ is considered invalid - a lint will PHP Parse error: syntax error, unexpected '{', expecting identifier (T_STRING): <?php namespace foo; use some\{ bar, baz }; use \some\{ bar, baz }; Is this a bug or feature? Regards, Arne -- Those who do not understand Unix are condemned to reinvent it, poorly (Henry Spencer,1987)

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.internals (#87774) next »