ocaml-code-style
Installation
SKILL.md
OCaml Code Style
Core Philosophy
- Interface-First: Design
.mlifirst. Clean interface > clever implementation. - Modularity: Small, focused modules. Compose for larger systems.
- Simplicity (KISS): Clarity over conciseness. Avoid obscure constructs.
- Explicitness: Explicit control flow and error handling. No exceptions for recoverable errors.
- Purity: Prefer pure functions. Isolate side-effects at edges.
- NEVER use Obj.magic: Breaks type safety. Always a better solution.