3 ms·
I just like Ruby more. You can connect both Python and Ruby to C APIs, and I've done so in the past from Ruby. C++ integration is usually moderately more anno
by wheels 17y ago
I just like Ruby more. You can connect both Python and Ruby to C APIs, and I've done so in the past from Ruby.
C++ integration is usually moderately more annoying since once you start moving beyond ordinal types cross-language communication becomes hairier. C ends up being the lingua franca between programming environments a lot of the time.
- kingkongrevenge 17y agoIt 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.
- wheels 17y agoRight. By "I extended them with C", I meant, "I extended them with a C interface"; the implementation was in C++.