Skip to content
Mochaccino
  • Pages
    • Introducing Mochaccino
    • Installation and Onboarding
    • Principles
    • Mochaccino Tools
    • Configuration File
    • Packages
    • Modules
    • Structs
    • Variables
    • Functions
    • Statements
    • Math
    • Debugging
    • Comments
    • icon picker
      Style Guide
    • Reference

Style Guide

We recommend lowerCamelCase for structs and UpperCamelCase for modules.

All Structs

All structs should use lowerCamelCase.

All Modules

All modules should use UpperCamelCase.

Complementary Objects

When a module provides functionality for a struct, they must have the same name, while also complying with the previous rules. For example, the string package:
struct string {...}
module String {...}
 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.