Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Sep 2012 at 21:53 UTC
Updated:
29 Jul 2014 at 21:12 UTC
Jump to comment: Most recent
Comments
Comment #1
lars toomre commentedWonderful... What is the Drupal policy? Alphabetical order?
Comment #2
Crell commentedThere is currently no Drupal policy. I couldn't find the previous issue where this was discussed and ended up with a general "meh".
Most of my code has been putting all Symfony classes together in one block, then all Drupal stuff together in a separate block, ordered roughly by component/subsystem. I don't know that a hard alphabetical order is necessary; it's not like it actually means anything to the compiler either way, and we're not going to be doing deployment based on the diffs (like for CMI objects).
Comment #3
Anonymous (not verified) commentedThis was also discussed here: #1624564: Coding standards for "use" statements
Personally, I like the suggestion as the code looks cleaner (to me), but the issue that was raised there was more that it's another coding standards issue to enforce, and that some people may be resistant.
If there are starting to be large numbers of these, though, I would prefer a standard.
Comment #4
sunOh. Sorry, I was not aware that we had an issue already. Marking as duplicate. Moved everything over.