Re:Can you use a class in C?
by shortrounddev2 on Sunday August 13, 2023 @09:05AM
(#37109651)
Function pointers in a struct
Re:Can you use a class in C?
by winstonewert on Sunday August 13, 2023 @11:47AM
(#37111019)
How would either approach be different? In both cases you would have to rewrite the code that directly interacts with your Excel library.
I am so much used to the idea of swapping out functionality (set of functions and a state). For example, just recently I had to swap out an Excel spreadsheet reader/writer library in Go for performance reasons, and would have bled a lot (due to refactoring) had it not been encapsulated as an interface.