HaskellWiki

Haskell | Wiki community | Recent changes
Random page | Special pages

 

Not logged in
Log in | Help

Camel case

Categories: Glossary

This is a convention for naming identifiers. Identifiers start with a lower case letter and words are separated by capital letters rather than underscores. So, for example, one would use someMultiWordName rather than some_multi_word_name.

See also Studly capitals.


It is an open question on how to name acronyms using this scheme. Some prefer editSGMLDocument while others prefer editSgmlDocument. The former is arguably more accurate and certainly more popular, but can get ugly. It's also not obvious how to name an identifier which starts with an acronym.

For these reasons, User:AndrewBromage personally prefers to treat acronyms as words.

Retrieved from "http://haskell.org/haskellwiki/Camel_case"

This page has been accessed 819 times. This page was last modified 16:42, 10 October 2006. Recent content is available under a simple permissive license.