rfc:empty_isset_exprs
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:empty_isset_exprs [2012/04/12 21:39] – created nikic | rfc:empty_isset_exprs [2012/05/21 20:35] – [Vote] lstrojny | ||
---|---|---|---|
Line 2: | Line 2: | ||
* Date: 2012-04-12 | * Date: 2012-04-12 | ||
* Author: Nikita Popov < | * Author: Nikita Popov < | ||
- | * Status: | + | * Status: |
+ | * Original discussion: http:// | ||
+ | * RFC announcement: | ||
==== Summary ==== | ==== Summary ==== | ||
Line 13: | Line 15: | ||
but it is not possible to write '' | but it is not possible to write '' | ||
- | Trying to do so results in this not pariculary | + | Trying to do so results in this not particularly |
For other expressions (not variables and not function calls) a parse error is thrown. | For other expressions (not variables and not function calls) a parse error is thrown. | ||
Line 23: | Line 25: | ||
As for function calls (and other expressions) it is already known that the value exists, using '' | As for function calls (and other expressions) it is already known that the value exists, using '' | ||
- | not necessary and '' | + | not necessary and '' |
==== Why should we change the behavior? ==== | ==== Why should we change the behavior? ==== | ||
Line 37: | Line 39: | ||
The patch is available as a PR on Github: https:// | The patch is available as a PR on Github: https:// | ||
+ | |||
+ | ==== Change only empty()? ==== | ||
+ | |||
+ | After further discussion it seems like it might be better to only add expression support for '' | ||
+ | original RFC included '' | ||
+ | |||
+ | On the other hand, using '' | ||
+ | is semantically unclear (how can '' | ||
+ | |||
+ | Allowing '' | ||
+ | |||
+ | ==== Vote ==== | ||
+ | |||
+ | < | ||
+ | title=" | ||
+ | * Both empty() and isset() | ||
+ | * Only empty() | ||
+ | * None | ||
+ | </ | ||
+ | |||
+ | The previous vote is obsolete and is left here only for reference: | ||
+ | |||
+ | < | ||
+ | title=" | ||
+ | * yes | ||
+ | * no | ||
+ | </ |
rfc/empty_isset_exprs.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1