3 ms·
Meh. Some of these are no longer problematic in recent versions of the language. Braced initialization obviates the most vexing parse, for example.
by hellofunk 10y ago
Meh. Some of these are no longer problematic in recent versions of the language. Braced initialization obviates the most vexing parse, for example.
- anuragsoni 10y agoThat is true, but there is still some ambiguity with initializer lists[1] [1] http://scottmeyers.blogspot.com/2016/11/help-me-sort-out-meaning-of-as.html http://scottmeyers.blogspot.com/2016/11/help-me-sort-out-mea... Discussion on hackernews about that blog post by Scott Meyers: https://news.ycombinator.com/item?id=13014429 https://news.ycombinator.com/item?id=13014429
- hellofunk 10y agoSome decent discussions there, I missed them before, thanks for pointing them out. Overall I disagree with some of the commenters who take one look at {{}} and cue the syntax bashing. I've found that many of the new syntactic conveniences in the language have brought a net positive to expressiveness and elegance.
- anuragsoni 10y agoDon't get me wrong. I agree that the new syntactic conveniences have improved the overall developer experience of using C++. I know how difficult it is to improve things in C++ while still maintaining backward compatibility with the huge history it has. C++11/14 was a step in the right direction and i'm looking forward to what will come with the new, more rapid release cycles they are trying to adopt.