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

The advantage is that you can access C++ code from just about every language. Therefore, you can use the same framework to write PHP, Python, Java, or .Net code.


No you can't. You can access C code from just about every language; but you need to put hundreds of man-hours into bindings before you can access actual C++ classes; and you just can't use templates and stuff.


Well there are things like SWIG and Boost Python that can make your life considerably easier. But you are right, it's much more work than C.


Then again it's also more trouble to write code in C than it is in C++.


SWIG is a hassle.




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

Search: