Lurker News
In the recent years C++ received a lot of backlash due to its complexity and (perceived) feature creep. However, since C++11 I really enjoyed writing C++ with its strict type system (including const), range-based for loops, smart pointers, and how much you can do with templates. On the other hand, I know that it can be very tricky to write, for instance, a correct iterator, to get handling of rvalue references right, or to read error messages that involve templates.

So, do you enjoy or dislike writing C++ source code and why?

Comments (93) 66 threads

Show all comments

Showing thread 50 of 66

kristiandupont#
When I switched from C++ to C# many years ago because of a job, I felt a real ick. Not just because of garbage collection, I remember feeling repulsed by the fact that every class had a "ToString()" method! Bjarne says that the common denominator of all classes is the empty set! But also, an English word, made from letters! Yuck! Everyone knows that you should only ever overload operators because special characters are so much purer!

My C# days are now long gone as well, and I guess when I switched to JS/TS, I was so deep in the filth that I had just surrendered. I will say though, that looking back, I do feel like I was in a bit of a cult. I appreciate abstractions being free or near-free, but it feels like the language sort of wants you to engage in bike shedding.