17 Oct 2022 17 Oct '22
Stephen J. Turnbull wrote:
Denis Kotov writes:
Usually people say that C++ not fit in CPython not knowing C++, That's not the issue. There are plenty of people who know C++ who say
the benefits of C++ are not worth the bugs, the effort, and the plain old churn that a rewrite in C++ (even if incremental) would require.
I am not sure about this one ... For example, PyObject is much better to implement using C++ class, it will bring RAII that will reduce number of issues not free memory in CPython See: https://youtube.com/clip/UgkxyNe_dsZKinT_RT3UGb-BaP0SnvKteo2o
Without RAII - introduced the most dangerous errors !!