Hacker News new | past | comments | ask | show | jobs | submit login

It is just as easy to extend any of the scripting languages with C++ as it is with C. SWIG and other systems like XS have built-in support for C++. Even if that weren't true, you can just make your interface header files 'extern "C"' yet enjoy the superior power of C++ in your implementation files.

There is no reason to favor C over C++ when extending a scripting language.




Right. By "I extended them with C", I meant, "I extended them with a C interface"; the implementation was in C++.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: