-
Notifications
You must be signed in to change notification settings - Fork 0
Expose CSV options to Go #63
Comments
Maybe use functional options |
ProblemThese option structs are C++ structs, they have a static Defaults function that cgo can’t work directly with C++, which means we can use them directly as Possible Solutionsnew functionA C function that will get all the parameters for an options struct and create Problems
Use PointersHave C wrappers that will create a pointer to options struct and have setters. Problems
C Shadow structHave a C struct that will be a copy of the C++ struct. Can be used directly Problems
SWIGUse swig to generate wrappers. Problems
1: If you have a procedure with 10 parameters, you probably missed some. - Alan Perlis |
@yonidavidson Care to weigh in on the above? |
This can be a good POC for SWIG, yet I don't think SWIG will be our silver bullet so It might not be worth to add complexity to our system with it. |
I'll probably go with |
The arrow CSV package has the following options:
ReadOptions
,ParseOptions
&ConvertOptions
. Expose them to Go.The text was updated successfully, but these errors were encountered: