note 119919 added to language.namespaces.importing

From: Date: Tue, 20 Sep 2016 10:50:37 +0000
Subject: note 119919 added to language.namespaces.importing
Groups: php.notes 
Request: Send a blank email to php-notes+get-206634@lists.php.net to get a copy of this message
The keyword "use" has been recycled for three distinct applications: 1- to import/alias classes, traits, constants, etc. in namespaces, 2- to insert traits in classes, 3- to inherit variables in closures. This page is only about the first application: importing/aliasing. Traits can be inserted in classes, but this is different from importing a trait in a namespace, which cannot be done in a block scope, as pointed out in example 5. This can be confusing, especially since all searches for the keyword "use" are directed to the documentation here on importing/aliasing. ---- Server IP: 72.52.91.14 Probable Submitter: 198.251.62.95 ---- Manual Page -- http://php.net/manual/en/language.namespaces.importing.php Edit -- https://master.php.net/note/edit/119919 Del: integrated -- https://master.php.net/note/delete/119919/integrated Del: useless -- https://master.php.net/note/delete/119919/useless Del: bad code -- https://master.php.net/note/delete/119919/bad+code Del: spam -- https://master.php.net/note/delete/119919/spam Del: non-english -- https://master.php.net/note/delete/119919/non-english Del: in docs -- https://master.php.net/note/delete/119919/in+docs Del: other reasons-- https://master.php.net/note/delete/119919 Reject -- https://master.php.net/note/reject/119919 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206634) next »