Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can, in fact, compile the C code with a C++ compiler, given trivial adjustments. Adopting "explicit type conversions" would have similarly trivial results. The benefits would come from leaning into higher-level organization.

C++ code going faster than the C is routine. It doesn't come without activity, but the activity yields a more maintainable system, so is commonly done.

MSVC's C compiler only recognized C90. It was generally easier to make your C99 code compile as C++ than to backport it to C90.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: