[php-src] PR #11933: [RFC] Implement match blocks (WIP)
| From: | iluuu1994 | Date: | Thu, 10 Aug 2023 12:22:42 +0000 |
| Subject: | [php-src] PR #11933: [RFC] Implement match blocks (WIP) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23340@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11933
Author: iluuu1994
- [ ] Make
throw statements non-terminators in match blocks. Alternatively, https://github.com/php/php-src/pull/11880.
- [ ] We should probably allow blocks with no result when the match result isn't used.
- [ ] Syntax bikeshedding. The omitted ; is subtle. We could do <=
$value or some other symbol. The downside is that people may expect this to work anywhere in
the block, which is currently not the case. The result must appear at the end of the block.