logoalt Hacker News

cresttoday at 11:50 AM2 repliesview on HN

About half of them read as "I tried to use C++ as a worse C" e.g. using struct initilisation instead of constructors, using malloc instead of new or new[].

My pet peeve with C++ is that the sequence point operator can be overloaded at which point it stops being a sequence point.


Replies

chabskatoday at 2:33 PM

As the title indicate, this article is comparing construct-to-construct, not idiomatic code to idiomatic code. You probably won't use struct initialization in C++, yet the feature still exist, so it may be useful to someone to compare it to the similar feature in C.

spacechild1today at 11:53 AM

What's the "sequence point operator"?

show 1 reply