Movatterモバイル変換


[0]ホーム

URL:


  1. Glossary
  2. Snake case

Snake case

Snake case is a way of writing phrases without spaces, where spaces are replaced with underscores_, and the words are typically all lower case. It's often stylized as "snake_case" to remind the reader of its appearance.

Snake casing is often used as a variable naming convention. The following names are in snake case:left_shift,bitwise_invert,matrix_transpose.

Note that snake case never contains upper case letters. Sometimes, constants are written in all-uppercase, such as JavaScript'sNumber.MAX_SAFE_INTEGER. This is not typically considered as snake case. Instead, it is sometimes calledscreaming snake case.

Snake case is the most popular convention in Python, Rust, and various other languages.

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp