rfc:switch-expression-and-statement-improvement
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:switch-expression-and-statement-improvement [2019/09/26 14:11] – added missing breaks brzuchal | rfc:switch-expression-and-statement-improvement [2020/07/22 08:39] (current) – Changed status brzuchal | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2019-09-12 | * Date: 2019-09-12 | ||
* Author: Michał Brzuchalski < | * Author: Michał Brzuchalski < | ||
- | * Status: | + | * Status: |
* First Published at: https:// | * First Published at: https:// | ||
Line 84: | Line 84: | ||
==== Return type ==== | ==== Return type ==== | ||
- | The nature of switch expression | + | The switch expression |
- | type-hint to enforce result | + | |
<code php> | <code php> | ||
Line 100: | Line 99: | ||
==== Non-completeness ==== | ==== Non-completeness ==== | ||
- | The nature of switch | + | The witch statement returning |
- | results in RuntimeException if none of the labels evaluated on a match. | + | |
<code php> | <code php> |
rfc/switch-expression-and-statement-improvement.1569507072.txt.gz · Last modified: 2019/09/26 14:11 by brzuchal