-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider using longer names #4
Comments
The real benefit of the 3 letter prefixes is alignment. The names are cumbersome, and having a set of prefixes is a visual aid when mixing container calls. Take for instance the usual, a lst and vec:
Juxtaposed with long names, unaligned.
The difference is minute, but the goal is visual alignment to the C++ equivalent of:
|
That is, I would say, a matter of personal preference (mine is somewhat different). But - they are the names of the C++ standard library constructs. I don't like a great many things about what's in the C++ standard library, but that's what you set out to implement. If you just want to implement something reminiscent of the C++ standard library, that's something else I guess. |
Considering CTL has been released in it's current form, changing name signatures would unfortunately break downstream. If it's absolutely necessary for your codebase to rely on full nomenclature, do a batch redefine:
|
My variant has proper long names, and does not pollute the main include space. |
In decades past, it used to be the case that only some characters at the beginning of an identifier were meaningful (after compilation), and the rest were ignored; also, screens showed fewer characters per line. This led people to try to "skimp" on characters in identifiers (e.g. in the Unix file system's top-level directories).
But these days - that's not necessary. And in this particular repository, there are original names to replicate.
Thus, I suggest you consider using the names "vector", "string" "dequeue" etc. in full, rather than the ultra-short versions of them.
The text was updated successfully, but these errors were encountered: