Naming conventions: Difference between revisions

m
Line 960:
 
Convention is that user variables and function names also also cammel case except they start with a lower case. eg myFunctionName. There is no limit to the number of characters in a user symbol, symbols can contain digits and non-ascii characters.
 
=={{header|MIPS Assembly}}==
* Registers typically start with a dollar sign, e.g. <code>$a0</code>, <code>$ra</code>, etc. Not all assemblers require this.
* Constants are usually in all capitals.
* Function names are often in CamelCase with the first letter being lowercase.
* <code>byte</code> is 8-bit, <code>halfword</code> is 16-bit, and <code>word</code> is 32-bit. However, it is up to the programmer to correctly use the data. The CPU never sees these declarations once the program is assembled, so there's nothing stopping you from loading data at the "wrong" length.
 
=={{header|Nim}}==
1,489

edits