What are the different kinds of cases?

后端 未结 4 1264
梦如初夏
梦如初夏 2021-01-30 00:06

I\'m interested in the different kinds of identifier cases, and what people call them. Do you know of any additions to this list, or other alternative names?

  • myIde
4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-30 00:26

    +--------------------------+-------------------------------------------------------------+
    | Formatting               | Name(s)                                                     |
    +--------------------------+-------------------------------------------------------------|
    | namingidentifier         | flat case/Lazy Case                                         |
    | NAMINGIDENTIFIER         | upper flat case                                             |
    | namingIdentifier         | (lower) camelCase, dromedaryCase                            |
    | NamingIdentifier         | (upper) CamelCase, PascalCase, StudlyCase, CapitalCamelCase |
    | naming_identifier        | snake_case, snake_case, pothole_case, C Case                |
    | Naming_Identifier        | Camel_Snake_Case                                            |
    | NAMING_IDENTIFIER        | SCREAMING_SNAKE_CASE, MACRO_CASE, UPPER_CASE, CONSTANT_CASE |
    | naming-identifier        | Kebab Case/caterpillar-case/dash-case, hyphen-case,         |
    |                          | lisp-case, spinal-case and css-case                         |
    | NAMING-IDENTIFIER        | TRAIN-CASE, COBOL-CASE, SCREAMING-KEBAB-CASE                |
    | Naming-Identifier        | Train-Case, HTTP-Header-Case                                |
    | _namingIdentifier        | Undercore Notation (prefixed by "_" followed by camelCase   |
    | datatypeNamingIdentifier | Hungarian Notation (variable names Prefixed by metadata     |
    |                          | data-types which is out-dated)                              |
    |--------------------------+-------------------------------------------------------------+
    

提交回复
热议问题