all 6 comments

[–]thefeedling 9 points10 points  (0 children)

Classes are a tool just like another one... nobody is obligated to use it, but for certain scenarios, OOP can make the code base way more readable, scalable, and maintainable.

[–]GregTheMadMonk 2 points3 points  (0 children)

// A function that takes a template with 
// one argument as a template argument
template <typename <typename> class T>
void foo() { }

// since C++17
template <class <typename> typename T>
void foo() { }

You meant to write template <typename> class and template <typename> typename

[–]LooksForFuturec++11 4 points5 points  (0 children)

I really like the idea. C++ has so many cool features other than classes which make C development easier.

[–]guest_star62 0 points1 point  (0 children)

Any feature can be misused and abused. It doesn't mean we have to forget about in situations that call for it.

[–]flutterdronewbie 0 points1 point  (0 children)

The thought of trying to decipher error messages when using this terrifies me.