Jump to content

Naming conventions: Difference between revisions

→‎{{header|Factor}}: change some awkward wording
(→‎{{header|Factor}}: clarify a bit)
(→‎{{header|Factor}}: change some awkward wording)
Line 501:
Words are <code>named-with-dashes</code> instead of <code>named_with_underscores</code> or <code>namedWithCamelCase</code>. We tend to avoid abbreviating names. Since we typically don't name throwaway values, this improves clarity. Parsing words are <code>NAMED-LIKE-THIS:</code> so words that perform parse time look-ahead can be easily identified.
 
Since words can be named anything as long as they don't parse as a number or a string, word names follow an expressive mnemonic system, outlined below. This is not enforced in any way, but encouraged as a way to improve clarity ofconvey intent.
 
{| class="wikitable"
1,808

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.