Proposal for unified namespace organization | drupal.org
Drupal
Drupal\Component\$component
Drupal\Core\$subsytem
Drupal\Module\$module
Drupal\Hook and Drupal\Module\$module\Hook
namespaces
drupaleasypodcast
php
drupal8
Drupal
Drupal\Component\$component
Drupal\Core\$subsytem
Drupal\Module\$module
Drupal\Hook and Drupal\Module\$module\Hook
Modules and themes (and engines) would have a namespace such as
namespace drupal\taxonomy;
or
namespace drupal\bartik;
Function prefixes, such as 'taxonomy_' would be dropped.
However, this makes Drupal code really ugly.
Calling functions not in a module from a module would look like this:
\drupal\set_message();
Calling a db function would look like this:
\drupaldb\select('node');
Calling an API function in another module would look like:
\drupal\taxonomy\select_nodes();
The solution? Namespace importing.