News for hackers. Stuff that matters.
Re:Why I don't spend time with Modern C++ anymore by slavik81 on Wednesday May 18, 2016 @06:53PM (#11726668)
I'm not a huge fan of the first rule. It's valid as stated, but the examples are questionable. I've seen all those in real code, and they're kind of annoying.

    auto f = make_widget();
    // is f of type widget or widget*?

    auto i = 123;
    // ok, I guess, but...
    // int i = 123; is shorter and more clear.

    auto x = vec3(1.0, 0.0, 0.0);
    // this can be shorter and simpler.
    // vec3 x(1.0, 0.0, 0.0);

There are no comments on this comment yet.