logoalt Hacker News

prophittcorey • today at 5:23 PM • 2 replies • view on HN

I didn't want to state why C and not "X" because the comments would have devolved into an all out language war.


Replies

kanbankaren • today at 6:30 PM

As someone who works on C compilers, I find the obession with C language insane.

For any greenfield project, pick up C++ in lieu of C if you want a C language.

There is no runtime penalty for using C++ if you stick to plain structs and don't use virtual functions, but you get better static type safety, lvalue references, namespaces, etc. even if you don't use the OO features.

Even for virtual functions, the overhead is minimal that it is just noise.

C compilers themselves are written in C++ for the last 15 years. Oh, the irony!

➕ show 4 replies
christoff12 • today at 5:31 PM

Fair enough. But I am also curious if you'd like to share your rationale.