-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
PascalCase wrongly named as camelCase #2194
Comments
The wikipedia article you linked says:
Which says to me that 1. Pascal case is a subset of camel case, so we're not wrong and 2. Only some people distinguish camel and pascal; we're some people that don't. So we're not going to change this. Thanks though! |
I made this same assumption and was about to file a bug for it until I saw this. I think PascalCase is less confusing and more specific. I never heard of UpperCamelCase before and always just called it PascalCase. I don't think I'm the only one that will be confused about this. No harm in being more precise and leaving less open to interpretation. Just my 2 cents. |
I personally do not distinguish between Pascal and camelCase for obvious reasons |
I would argue that this choice feels wrong in terms of computer science history and precision of language in didactic material. |
Why would you choose to use an ambiguous, less specific name when you have a well understood and precise alternative that has no ambiguity? This was a really weird idiosyncrasy in an otherwise excellent handbook. I understand that you were not technically wrong but it doesn't mean it wouldn't be more helpful with a change. |
Gotta agree with David on this one. Being more specific is almost always a good thing when compared to being more general and being technically correct, at the cost of further confusion. The fact that we've had quite a few PRs and issues about this only reinforces the fact that people are indeed getting confused (and that isn't counting the number of people who probably read it and assumed it was a typo, but didn't open an issue / PR) |
Brings the terminology in line with the rest of the project, see <rust-lang/rfcs#2389>. Connects to #2194.
Not really a big deal, but wherever I see, the naming convention is documented as
CamelCase
, which usually implieslowerCamelCase
when in actuality it'sUpperCamelCase
or, more commonly referred to as,PascalCase
. Should I put in a PR to change it toPascalCase
?Edit: References:
The text was updated successfully, but these errors were encountered: