2 ms·
> One minor point: if your library does file IO, let me override your file operations with my own callbacks, or at least consider providing methods that operate
by masklinn 13y ago
> One minor point: if your library does file IO, let me override your file operations with my own callbacks, or at least consider providing methods that operate solely on blobs in memory (that way I can populate those blobs however I see fit)--giving me a function that takes a const char* for the filename and then does -~=magic=~- is simply not okay.
Not only is that an excellent reminder, it's an excellent reminder for every API in every language out there.
Though it's not necessarily fun, having to build a shim/layer over FILE* and related functions all the time.