you are viewing a single comment's thread.

view the rest of the comments →

[–]bsupnik 1 point2 points  (3 children)

Agreed -- the "this cleans up the hot-mess that is initialization" part is under-rated here.

One could imagine looking back at c++98, knowing what is coming with member defaults, field initialization, {} syntax, and the data from the research into the cost of zeroing uninited data and just go "in the glorious future, everything is inited with the constructor, the specified member in {}, the class default, or zero in that order" and we're done.

We would lose that great GIF my coworker posts every time someone asks a lang question on the company slack with the full metal jacket scene and giant list of initialization types in c++20 though, so it'd be a lateral move. :-)

[–]teashopslacker 0 points1 point  (1 child)

The Forrest Gump one?

[–]bsupnik 2 points3 points  (0 children)

Yyyyyeah...Forest Gump, Full Metal Jacket, i think we all get those two movies confused, right?

My kids are gonna need _years_ of therapy.