3 ms·
What I mean is, instead of making [Core C++ library] -> [stable C interface] -> [stable C++ interface] one could make both directly: [Core C++ library] -> [sta
by shmerl 13y ago
What I mean is, instead of making [Core C++ library] -> [stable C interface] -> [stable C++ interface] one could make both directly:
[Core C++ library] -> [stable C interface]
[Core C++ library] -> [stable C++ interface]
That would avoid extra overheard in the last case.
- piokuc 13y agoAs far as the number of layers is concerned it's the same. The advantage of writing the C++ stable API on top of C API is that both C and (stable) C++ API have the same functionality/semantics - if you write those two separately on top of the primary C++ API they can easily diverge.