-
Notifications
You must be signed in to change notification settings - Fork 30
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
Design Question: Scalars #17
Comments
Acutally forget about "inconsisent design". Simply this should be addressed:
|
Suggestions for a short name? |
It's hard, because "assertInteger" means the vector. We can talk about this in person, if you want. Problem might be that there is no "shorthand signifier" in the name that expresses "vector" or "scalar." And I am really not sure what is best. Nevertheless how do you like this:
http://en.wikipedia.org/wiki/Integer_(computer_science) Each of these names is suboptimal for a different reason though, I just dont know anything else... Let's talk, I can really not express what I what to say in writing here. |
It seems to be the design is somewhat inconsistent wrt to the scalars.
IMHO these should allow more flexibility.
The point is: If one has to very often resort to the check*Vector operations, to do these types of checks (ala bounds) one will simply remember those.
Note that I am NOT arguing for exposing everything of the vector interface. But the most common stuff should be exposed for the scalars. If this has reasonable defaults and the same names as for the vector, nobody gets hurt and its easy to remember.
It is actually probably LESS intuitive that some of those args are missing.
The text was updated successfully, but these errors were encountered: