Skip to content

Variant of snake:upper (screaming case) that doesn't add _ between consecutive uppercase letters #41

Description

@ds84182

A struct with an acronym in its name (e.g. RayDSL, short for "Descriptor Set Layout") are converted to have _ between each uppercase letter (RAY_D_S_L instead of RAY_DSL).

Rust style guide:

In snake_case or SCREAMING_SNAKE_CASE, a "word" should never consist of a single letter unless it is the last "word".

Although the style guide says that acronyms in UpperCamelCase should be counted as words (e.g. RayDsl) I think that is horrible looking because it is an acronym! Treating it like a normal word loses that semantic and can instead be confused for an abbreviation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions