[PR][php-langspec][#177] - A `list` cannot be empty
| From: | noreply@php.net | Date: | Wed, 16 Nov 2016 17:26:57 +0000 |
| Subject: | [PR][php-langspec][#177] - A `list` cannot be empty | ||
| Groups: | php.standards | ||
| Request: | Send a blank email to standards-+get-1181@lists.php.net to get a copy of this message | ||
You can view the Pull Request on github:
https://github.com/php/php-langspec/pull/177
Comment by nikic:
The important part here is the sentence "At least one of the elements of the
*list-expression-list* must be non-empty" in the constraint section. What this means is that
not only
list(), but also list(,) or list(,,,,,) are
forbidden. (Zend allows an empty list() syntactically, but does rejects it lateron.)