top | item 47099720

(no title)

BoredomIsFun | 8 days ago

> C in C++ is a pretty terrible experience

No I think, it the other way around, a fantastic experience; yes, you miss certain features of C, but instead you get massive benefits of C++ - above-mentioned defer, that'd work on any moderrn C++ compiler, constexpr's, a strategic use of STL while prototyping, templates etc.

> C++ doesn't let you implicitly cast from void* to other pointer types

It does, but that is not a good thing IMO anyway.

> Plenty of C APIs are really not very ergonomic when string literals aren't 'char '.

Examples? In my experience most C libraries have const char in their signatures whenever it makes sense.

> C is a much better C than C++ is.

Nonsense.

discuss

order

No comments yet.