Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Letter case
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====Snake case==== {{main|Snake case}} {{blockquote|"the_quick_brown_fox_jumps_over_the_lazy_dog"}} Punctuation is removed and spaces are replaced by single [[underscore]]s. Normally the letters share the same case (e.g. "UPPER_CASE_EMBEDDED_UNDERSCORE" or "lower_case_embedded_underscore") but the case can be mixed, as in [[OCaml]] variant constructors (e.g. "Upper_then_lowercase").<ref>{{Cite web|url=http://caml.inria.fr/resources/doc/guides/guidelines.en.html|title=Caml programming guidelines|website=caml.inria.fr|language=en|access-date=2017-03-31}}</ref> The style may also be called ''pothole case'', especially in [[Python (programming language)|Python]] programming, in which this convention is often used for naming variables. Illustratively, it may be rendered ''snake_case'', ''pothole_case'', etc.. When all-upper-case, it may be referred to as ''screaming snake case'' (or ''SCREAMING_SNAKE_CASE'') or ''hazard case''.<ref name="Ruby" />
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)