0x0LearnReferenceLibrariesMigration0x0.jmp0x1b.com

0x0 Style Guide

This guide defines public source style for 0x0 docs, examples, libraries, and

apps.

Naming

Public function names use lowercase kebab-case:


(ƒ parse-option ...)
(ƒ safe-path ...)

Do not use underscores in function names:


some_method

Allowed exceptions:

spelling;

Files And Modules

Public Functions

Public library and framework functions should include:

Comments

Use comments for intent, representation, invariants, ABI rules, and non-obvious

control flow. Avoid comments that restate the next expression.

Capabilities

Use the narrowest capability that matches the implementation:

current docs support that boundary;

Public Documentation

Docs must describe implemented behavior. Planned and deferred work must be

visibly labeled.