4 ms·
Why the initial capital on local variable names? I don't think I've ever seen that in C code. (Usually types and exported functions are capitalized.) It kind o
by pavlov 10y ago
Why the initial capital on local variable names? I don't think I've ever seen that in C code. (Usually types and exported functions are capitalized.)
It kind of makes the code look like Pascal. Nothing wrong with that, really.
- cpeterso 10y agoThis looks like the NT kernel coding style, especially with the pointless typedefs for things like PVOID and the PascalCased function names with prefixes like `IopPerformIoOperation`. I looked up the Minoca founders on Linked In and, behold, they both worked as engineers on the Windows NT team. :)
- 13of40 10y agoNT source code typically (and I say typically, because it's a mish-mash of tens of thousands of people's work over 35 years of development) has local variable names in first-letter-lower camel case. If these guys worked on Windows, it's kind of surprising they didn't follow that convention.
- bonzini 10y agoUsually it's uppercase with a lowercase "Hungarian notation" prefix. Without the prefix, it starts with uppercase.
- deleted 10y ago[deleted]
- qznc 10y agoI think it actually makes more sense, since in english we capitalize names (variables), but lowercase generic nouns (types). I agree that it is unusual, though.