Naming

The naming conventions for Loop which was heavily inspired by Rust's naming conventions.

These conventions were discussed under the following ADR: https://gitlab.com/looplanguage/loop/-/tree/main/docs/adr/approved/naming-convention.md

In general, Loop tends to use CamelCase for "type-level" constructs (types and traits) and snake_case for "value-level" constructs. More precisely:

ItemConvention

Modules

snake_case

Classes

CamelCase

Enums

CamelCase

Functions

snake_case

Methods

snake_case

Local variables

snake_case

Static variables

SCREAMING_SNAKE_CASE

Constant variables

SCREAMING_SNAKE_CASE

Type parameters

concise CamelCase, usually single uppercase letter: T

Last updated