Re: [RFC] Default expression
| From: | John Coggeshall | Date: | Sun, 25 Aug 2024 16:28:04 +0000 |
| Subject: | Re: [RFC] Default expression | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-125224@lists.php.net to get a copy of this message | ||
> Special-casing the T_DEFAULT grammar would not only bloat the grammar rules but also increase
> the chance that new expression grammars introduced in future, which could conveniently interoperate
> with
default, would be unintentionally excluded by omission.
Forgot to add that I don't think the fact doing this properly requires a more complex grammar
is a strong argument for doing it "the easy way" of allowing all expressions. It's a
special case, and that should be reflected in the grammar.