-
Notifications
You must be signed in to change notification settings - Fork 50
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
StringParam.* SizeIs and HasLengthBetween are congruent methods, but have inconsistent naming style #147
Comments
So you want: There's What do you prefer? I would go with (A). Be happy and move on with life so to speak 😀 |
Coming back to it a few days later, I'm actually thinking perhaps we keep both? Let me "talk out" my thoughts on the options to bounce the ideas off of you... Options
I'm actually thinking I've seen libraries make synonyms (not the word I'm looking for) for APIs before, so maybe the fear of folks getting confused and asking "What's the difference between Size and Length" is less than I worry. If you agree on that, I suggest the final option to just add some synonyms! P.S. As far as wants, I was trying to be as unopinionated as possible to let you have free reign, especially in case you intended it to be as-is. Just wanted to let you know of what I saw in case it felt important to you. P.P.S. While I was writing the above that |
This is very minor, and would require a peek at if SizeIs is being consistent with Collection or some other method, but I noticed the inconsistency while trying to invoke a length limit on a string and figured I should at least mention it here :)
Thanks Daniel!
The text was updated successfully, but these errors were encountered: