Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #18466 > unrolled thread
| Started by | alex <1j9448a02@lnx159sneakemail.com.invalid> |
|---|---|
| First post | 2020-12-23 11:53 +0100 |
| Last post | 2020-12-23 12:28 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.php
namespace importing: code style alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-12-23 11:53 +0100
Re: namespace importing: code style "J.O. Aho" <user@example.net> - 2020-12-23 12:28 +0100
| From | alex <1j9448a02@lnx159sneakemail.com.invalid> |
|---|---|
| Date | 2020-12-23 11:53 +0100 |
| Subject | namespace importing: code style |
| Message-ID | <rrv7jp$5hi$1@gioia.aioe.org> |
Usually I just use these two styles:
// Grouping by vendor
use Vendor\{
Package\Class1,
Package\Class2,
OtherPackage\OtherClass,
};
// Grouping by package
use Vendor\Package\{
Class1,
Class2,
};
use Vendor\OtherPackage\{
OtherClass,
};
What style, or rather, what kind of grouping do you prefer?
[toc] | [next] | [standalone]
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Date | 2020-12-23 12:28 +0100 |
| Message-ID | <i4gnu9FtldfU1@mid.individual.net> |
| In reply to | #18466 |
On 23/12/2020 11.53, alex wrote:
> Usually I just use these two styles:
>
> // Grouping by vendor
> use Vendor\{
> // Grouping by package
> use Vendor\Package\{
> use Vendor\OtherPackage\{
>
> What style, or rather, what kind of grouping do you prefer?
Which style you use ain't the most important, the most important that
you use the same style all the time.
--
//Aho
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web