Actions
Bug #18883
closedparse.y: trailing comma cannot coexist with star
Bug #18883:
parse.y: trailing comma cannot coexist with star
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
Description
The following code is a syntax error:
although the following:
In my understanding, the trailing comma does nothing unless the lhs becomes otherwise a single assignment.
Therefore it is natural to allow the trailing comma whether * exists or not.
Actions