News for hackers. Stuff that matters.
Re:C constructs that still don't work in C++ by skrebbel on Monday May 25, 2026 @05:15AM (#48264911)
I don’t understand your point at all, C++ objectively has a much stronger type system. It’s turing complete!

I’m not arguing that that’s better, or worse, but it’s definitely true and by no means a myth.

Re:C constructs that still don't work in C++ by lelanthran on Monday May 25, 2026 @06:11AM (#48265204)
I don't think GP meant "it's completely made up", I think he meant the distinction doesn't matter most of the time.

I.e. most of the time the typing in real C++ code isn't meaningfully stronger than that found in C code.

Re:C constructs that still don't work in C++ by uecker on Monday May 25, 2026 @07:05AM (#48265509)
More complex != stronger. A weak type system would imply that the type systems forgives type mismatches. C had this before it imported prototypes from C++ where you could call a function without declaring it first and if you got it wrong you got some error or crash. The only part where I think C++'s type system is meaningfully stronger than C are enumeration types.