2 ms·
> Traditional languages don't let you do [...] Because the parse would expect something to come after that last comma. Which languages are you referring to? Al
by akio 10y ago
> Traditional languages don't let you do [...] Because the parse would expect something to come after that last comma.
Which languages are you referring to? Almost every language I'm aware of allows trailing commas.
C, C++, Java, Python, C#, Javascript (somewhat), Ruby, Objective-C, Perl, PHP, Elixir, Rust, and Go all allow trailing commas.