Comment

Comment by ephaeton

Designated Initializers done awkwardly a.k.a. "the C++ way"

  // Point2D point2d {.y = 2, .x = 1};         // (1) error
Oh my. The C++ committee keeps their flight altitude rivaling moles and worms. This is another brittle feature, just like the initializer lists that have to mirror the declaration order. In what world is this a better option than allowing any order? Can't compiler implementors be bothered or what is the rationale?? C does this better.
parent ephaeton 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton