Question

Is it right or more beautiful to name the functions with an prefix, like in Qt? Or using "many" namespaces, but 'normal' names for functions? For example,

slOpenFile(); //"sl" means "some lib"

vs

some_lib::file_functions::openFile();

Update: I've read somewhere that the first variant(using some prefix) is better, because the API users can perform 'fast' search among the documentation and in the Internet. E.g. by typing the magic prefix search engine starts to advice the exact functions. Is it enough to use the first variant?

No correct solution

Licensed under: CC-BY-SA with attribution
scroll top