Re:Sparrow, a Modern C++ Implementation of the Apache Arrow ...
by arka2147483647 on Saturday February 01, 2025 @04:07AM
(#42897028)
Respectfully, the value of a c++ wrapper/implementation comes from the fact that it behaves like one would expect a C++ classes to behave. That is, RAII, and so on.
If the underlying resource can not behave like a class, it would be better to expose a free function style api, eg:
Handle h = ResourceGet();
ResourceDoSomething(h);
h.release();
If the underlying resource can not behave like a class, it would be better to expose a free function style api, eg: