[php-src] Issue #11039: Nested imports - Deeper levels
| From: | markhj | Date: | Sat, 08 Apr 2023 09:08:24 +0000 |
| Subject: | [php-src] Issue #11039: Nested imports - Deeper levels | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-244153@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/11039
Author: markhj
### Description
Today, you can do nested imports on the form:
````php
use Universe\{
Wormhole,
Galaxy\GalaxyForm,
Galaxy\PlanetaryBody\Gravity,
Galaxy\PlanetaryBody\Atmoshere,
Galaxy\PlanetaryBody\LifeFormList,
};
````
But you cannot nest the deeper (as is possible for example in Rust).
````php
use Universe\{
Wormhole,
Galaxy\{
GalaxyForm,
PlanetaryBody\{
Gravity,
Atmosphere,
LifeFormList,
},
},
};
````
This would be a cool addition.