Feature #19567
openAdd Oxford Comma Support for better readability
Description
Ruby has regular commas:
Ruby has trailing commas:
But I think both of these are hard to read compared to the Oxford comma.
We should introduce the Oxford comma so that code is easier to read:
For example:
As an added bonus, this feature also makes specifying musical beats
quite natural, for example:
Just to make sure that everyone is pleased, you are allowed to mix the
Oxford comma with trailing commas like this:
Files
Updated by hurricup (Alexandr Evstigneev) over 3 years ago
This looks a lot like perl. Moving towards normal-text-like programming language may be a dangerous way.
Looks nice, but feels scary and unnecessary.
Updated by ko1 (Koichi Sasada) over 3 years ago
why not , or too?
Updated by luke-gru (Luke Gruber) over 3 years ago
What if there was a american_english: true magic comment that allowed this behavior? Then Ruby could support other English idioms and it would be extensible. Also British people could turn it off.