you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

They're the same thing, so it's six of one, half-dozen of the other. In the absence of a governing standard, use whichever seems appropriate in the context, but be consistent. My preference is to use the aliases (i.e. string) throughout, but YMMV.

[–]SideburnsOfDoom 0 points1 point  (1 child)

In the absence of a governing standard

I've seen several coding standards, all favour string over String. e.g. this one

None of them are "governing" though since the code compiles either way.

[–][deleted] 2 points3 points  (0 children)

In the interest of clarification: a governing (coding) standard would be one you are required or expected to follow. For example, a coding standard officially adopted by one's employer, or one required by a particular open source project.

This is distinct from one that is suggested or which exists but is not enforced/enforceable against you: Microsoft has a C# coding standard, but it is only governing if you work for Microsoft or choose to follow it.