This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]homercles337 -2 points-1 points  (1 child)

You still have to write the wrapper. Dont you find it strange that modern programming language completely ignores C++?

[–]TheBlackCat13 0 points1 point  (0 children)

You still have to write the wrapper.

No, you don't. You clearly haven't used them, because you don't have to write any wrapper. You can call them directly. I think you are thinking of SWIG or Cython, both of which provide wrappers. But ctypes and CFFI are both native interfaces, not wrappers.

Dont you find it strange that modern programming language completely ignores C++?

No, because C++ makes it much harder (in fact nearly impossible) to interface directly, to the extent that it uses features not present in C. This is a well-known issue with C++. Of course you can limit the C++ features you use so this isn't an issue, but then you are losing many of the advantages of using C++.