Some functions (especially simple getter-like functions) could probably avoid returning a Result and simply return the type, because we don't actually expect exceptions to be thrown on the C++ side.
As well, reconsider ErrorCode. Perhaps a String is sufficient for these cases and we can avoid the enum altogether.
Some functions (especially simple getter-like functions) could probably avoid returning a
Resultand simply return the type, because we don't actually expect exceptions to be thrown on the C++ side.As well, reconsider
ErrorCode. Perhaps aStringis sufficient for these cases and we can avoid the enum altogether.