News for hackers. Stuff that matters.
Re:Short intro to C++ for Rust developers: Ownership and Bor... by kchoudhu on Sunday January 22, 2017 @10:03PM (#13459388)
I do. Easier to comment things out when necessary.

Hangover from SQL as well.

Re:Short intro to C++ for Rust developers: Ownership and Bor... by flukus on Sunday January 22, 2017 @10:26PM (#13459523)
I wish trailing commas were more widely supported in programming languages.
Re:Short intro to C++ for Rust developers: Ownership and Bor... by GrayShade on Monday January 23, 2017 @06:14AM (#13461362)
It'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.
Re:Short intro to C++ for Rust developers: Ownership and Bor... by masklinn on Monday January 23, 2017 @08:44AM (#13462084)
> 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