3 ms·
I do. Easier to comment things out when necessary. Hangover from SQL as well.
by kchoudhu 10y ago
I do. Easier to comment things out when necessary.
Hangover from SQL as well.
- flukus 10y agoI wish trailing commas were more widely supported in programming languages.
- GrayShade 10y agoIt's the same. You can comment out the last line easier, but not the first one. With trailing commas, it's the other way around.
- masklinn 10y ago> With trailing commas, it's the other way around. If the language supports trailing commas[0] (rather than just interspersed ones) that's not an issue as you could write: Person(std::string first_name, std::string last_name): first_name(std::move(first_name)), last_name(std::move(last_name)), {} [0] as Python, Ruby, Javascript or Rust do