rfc:group_use_declarations
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:group_use_declarations [2015/02/14 01:18] – missing word marcio | rfc:group_use_declarations [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2015-01-28 | * Date: 2015-01-28 | ||
* Author: Márcio Almada, marcio.web2@gmail.com | * Author: Márcio Almada, marcio.web2@gmail.com | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
* Patch: https:// | * Patch: https:// | ||
Line 24: | Line 24: | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | Group use declarations are just **syntactic sugar** | + | Group use declarations are used to cut verbosity when importing multiple entities from a common namespace. Using common PHP library examples, the following use declarations are equivalents: |
<code php> | <code php> | ||
Line 125: | Line 125: | ||
use Symfony\Component\Console\Question\{ | use Symfony\Component\Console\Question\{ | ||
ConfirmationQuestion, | ConfirmationQuestion, | ||
- | ChoiceQuestion as Choice; | + | ChoiceQuestion as Choice, |
+ | + | ||
Question, | Question, | ||
Line 212: | Line 212: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | * [[https:// | + | * [[https:// |
===== Votes ===== | ===== Votes ===== | ||
As this is a language change, this RFC requires a 2/3 majority of Yes votes (with or without trailing " | As this is a language change, this RFC requires a 2/3 majority of Yes votes (with or without trailing " | ||
- | <doodle title=" | + | <doodle title=" |
* Yes - **with** a trailing " | * Yes - **with** a trailing " | ||
* Yes - **without** a trailing " | * Yes - **without** a trailing " |
rfc/group_use_declarations.1423876711.txt.gz · Last modified: 2017/09/22 13:28 (external edit)