rfc:variadic_empty
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
rfc:variadic_empty [2015/02/21 04:59] – tpunt | rfc:variadic_empty [2015/03/28 15:54] – tpunt | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2015-02-20 | * Date: 2015-02-20 | ||
* Author: Thomas Punt, tpunt@hotmail.co.uk | * Author: Thomas Punt, tpunt@hotmail.co.uk | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | This RFC aims to enable | + | This RFC aims make '' |
<code php> | <code php> | ||
Line 24: | Line 24: | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | The proposal is to change '' | + | The proposal is to change '' |
- | As the above snippet demonstrates, | + | As the above snippet demonstrates, |
===== Justification ===== | ===== Justification ===== | ||
Line 32: | Line 32: | ||
In PHP, it is not uncommon to see conditionals consisting of multiple '' | In PHP, it is not uncommon to see conditionals consisting of multiple '' | ||
- | WordPress (( https:// | + | WordPress (( https:// |
<code php> | <code php> | ||
if ( empty( $pointer_id ) || empty( $selector ) || empty( $args ) || empty( $args[' | if ( empty( $pointer_id ) || empty( $selector ) || empty( $args ) || empty( $args[' | ||
Line 43: | Line 43: | ||
<code php> | <code php> | ||
return !( | return !( | ||
- | empty($this-> | + | empty($this-> |
- | empty($this-> | + | empty($this-> |
- | empty($this-> | + | empty($this-> |
- | empty($this-> | + | empty($this-> |
- | !@extension_loaded(' | + | !@extension_loaded(' |
- | ); | + | ); |
</ | </ | ||
And so on... | And so on... | ||
- | So this seems like quite a common need for users, and one that cannot be emulated in user-land code because of '' | + | So this seems like quite a common need for users, and one that cannot be emulated in user-land code because of '' |
+ | |||
+ | This change | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 64: | Line 66: | ||
The current functionality of '' | The current functionality of '' | ||
- | ===== Proposed Voting Choices | + | ===== Vote ===== |
- | Because this is a language change, a 2/3 majority is required. | + | Because this is a language change, a 2/3 majority is required. It is a simple yes/no vote on whether '' |
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
+ | |||
+ | Voting starts on 2015-03-07 and ends on 2015-03-21. | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
PR: https:// | PR: https:// |
rfc/variadic_empty.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1