top | item 24877540

(no title)

astro-codes | 5 years ago

Interesting! Could you explain? What C features doesn't C++ have?

discuss

order

atq2119|5 years ago

- C has its own syntax for generics

- C has broader support for designated initializers

- C allows implicitly casting void* to any other pointer type

- C has fewer keywords, e.g. you can use "friend" or "class" as identifier

- ...

Despite all this, it's true enough that one can easily write C code that also compiles as C++.

xondono|5 years ago

- C has its own syntax for generics

C has generics?