rfc:switch_expression
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:switch_expression [2020/03/28 01:42] – List Michał as an author ilijatovilo | rfc:switch_expression [2020/03/28 12:29] – Move to Under Discussion ilijatovilo | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Author: Ilija Tovilo, ilija.tovilo@me.com | * Author: Ilija Tovilo, ilija.tovilo@me.com | ||
* Author: Michał Brzuchalski, | * Author: Michał Brzuchalski, | ||
- | * Status: | + | * Status: |
* Target Version: PHP 8.0 | * Target Version: PHP 8.0 | ||
* Implementation: | * Implementation: | ||
Line 120: | Line 120: | ||
</ | </ | ||
- | The fallthrough behavior can't reasonably be changed in the '' | + | The fallthrough behavior can't reasonably be changed in the '' |
==== Inexhaustiveness ==== | ==== Inexhaustiveness ==== | ||
Line 171: | Line 171: | ||
<code php> | <code php> | ||
- | $x = switch ($y) {} | + | $x = switch ($y) {}; |
// instead of | // instead of | ||
- | $x = $y switch {} | + | $x = $y switch {}; |
</ | </ | ||
Line 189: | Line 189: | ||
===== "Why don't you just use x" ===== | ===== "Why don't you just use x" ===== | ||
- | The have been some comments on how you can already achieve the same result. | + | There have been some comments on how you can already achieve the same result. |
==== if statements ==== | ==== if statements ==== |
rfc/switch_expression.txt · Last modified: 2020/04/12 00:04 by ilijatovilo