by exDM69 · 14y ago · 0 comments
However if you want to share your code with other people, I would go with the standard names.
Designing for people that don't know anything about what they do isn't a goal worth pursuing, the only thing you might succeed with is tricking someone into thinking they know something - in which case you've just made it worse.
Also, "mtx" could just as well be "matrix" as another posted mentioned they had used in their code. "mutex" can never be "matrix"
Not everybody will recognize mtx as mutex while reading code, and lots of people learn code by reading it, rather then from standards.
mtx: maybe mutex? maybe multi-transaction? maybe library prefix? vendor prefix? maybe, maybe...
2 characters
I wonder what the ramifications would be if someone went through and properly named the functions.
(Keep in mind: identifiers ending in _t are reserved by POSIX. http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh...)
It might simply be racial memory, from the days of linkers with eight character symbols (and the initial underscore ate one of them). It's hard to believe we actually wrote software under those limitations.