PascalCase: Difference between revisions
Appearance
Content deleted Content added
Notifying of move discussion on Talk:PascalCase |
redirect since the content is merged Tag: New redirect |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
#REDIRECT [[Camel case]] |
|||
<noinclude>{{User:RMCD bot/subject notice|1=Pascal case|2=Talk:PascalCase#Requested move 11 January 2018 }} |
|||
</noinclude>{{merge to|Camel case| discuss=Talk:PascalCase#Merger proposal|date=December 2017}} |
|||
{{Multiple issues| |
|||
{{Underlinked|date=September 2016}} |
|||
{{refimprove|date=August 2016}} |
|||
}} |
|||
In programming, '''Pascal case''', popularized by [[Pascal (programming language)|Pascal]], is the practice of writing compound words or phrases such that the first letter of each concatenated word is capitalized<ref name=":0">{{Cite web|url=https://msdn.microsoft.com/en-us/library/x2dbyw72(v=vs.71).aspx|title=Capitalization Styles|website=msdn.microsoft.com|access-date=2016-04-27}}</ref><ref name=":1">{{Cite web|url=https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/capitalization-conventions|title=Capitalization Conventions|website=docs.microsoft.com|access-date=2017-07-31}}</ref> such as BackColor, TimeUtc, FirstName, HtmlSize<ref name=":1" />, IntervalId<ref name=":1" /> and ComputerRamSize. No other characters are used to separate the words, like hyphens or underscores. |
|||
This is different from [[camel case]], in which the first letter may be lowercase or capitalized and each subsequent concatenated word is capitalized<ref name=":0" /> such as backColor and timeUtc, or [[snake case]] in which the words are always combined with an underscore character (_), such as back_color, time_utc, first_name or computer_ram_size. |
|||
Microsoft adheres to PascalCase and camelCase usage for variables of three or more letters.<ref name=":0" /> Common contemporary usage classes PascalCase as a special type of CamelCase, namely upper camel case, whilst camelCase as defined above is termed lower camel case. |
|||
==References== |
|||
{{Reflist}} |
|||
[[Category:Naming conventions]] |
|||
[[Category:Capitalization]] |
Latest revision as of 03:42, 20 January 2018
Redirect to: