Hi guys
I'm trying to make my library (SDL_Config) as easy to use by end-coder as possible. Now I'm thinking whether it would be worth adding to those public API functions...
int CFG_WriteBool( /* notimportant */ );
int CFG_WriteInt( /* notimportant */ );
int CFG_WriteFloat( /* notimportant */ );
int CFG_WriteText( /* notimportant */ );
... few others, which would duplicate behaviour of those above, but would have slightly different names, ie.
// Implemented in terms of:
int CFG_WriteBoolean( /* notimportant */ ); // CFG_WriteBool
int CFG_WriteInteger( /* notimportant */ ); // CFG_WriteInt
int CFG_WriteString( /* notimportant */ ); // CFG_WriteText
So, it would became non important whether you call CFG_WriteInt() or CFG_WriteInteger() - both do the same. This way, end-user could use form which he likes most, he remembers, or he actually typed. So, at last he wouldn't be forced to use functions with names, that were created in library author's sick mind :-)
What do you think about it? I care, since you're the potential user of this library [wink]. Single sentence will do.