News for hackers. Stuff that matters.
Re:C++ and the Culture of Complexity (2013) by pegasuscollins on Wednesday January 31, 2018 @11:40AM (#16275159)
> In Rust, there is exactly one way to create an instance of a struct: you provide a value for each of its fields.

As a user of both rust and and C++, I certainly wouldn't consider the the lack of default constructors in rust to be a good thing. Especially for std types like Vec it is really annoying to have to initialize it explicitly.

> The [dcl.init] section of the spec is about 16 pages long and there are about another dozen about how constructors work in the special member functions section.

That is a bad argument if you're comparing to a language that doesnt have a spec. Maybe a complete, exhaustive rust spec would be much longer than the C++ standard?

Re:C++ and the Culture of Complexity (2013) by masklinn on Wednesday January 31, 2018 @01:05PM (#16275954)
> As a user of both rust and and C++, I certainly wouldn't consider the the lack of default constructors in rust to be a good thing. Especially for std types like Vec it is really annoying to have to initialize it explicitly.

That is fair but orthogonal to the issue at hand, namely:

> How is Rust less complicated than C++?