Coco Programming Language

Coco is a systems programming language designed for the Ocean ecosystem. It draws inspiration from C while introducing modern language features and safety improvements.

Philosophy

Coco embraces simplicity and explicitness. Every operation should be clear and understandable. The language prioritizes:

  • Clarity - Code should be self-documenting
  • Performance - Close to the metal, minimal overhead
  • Safety - Memory safety without sacrificing control
  • Simplicity - Small language core, powerful primitives

Key Features

  • Static typing with type inference
  • Manual memory management with optional borrow checking
  • Zero-cost abstractions
  • Compile-time code execution
  • Cross-platform compatibility

The following chapters will guide you through the language specification, from basic syntax to advanced features.

Introduction

Explore the core philosophies and central tenets of the Coco language spec.

Types

Maximum simplicity with maximum safety. No let, no mut, just & for references. The compiler does the rest.

Control Flow

How Coco handles conditionals, pattern matching, loops, and iteration

Functions

Function definitions, parameters, closures, and generics in Coco

Object-Oriented Programming

Types, methods, composition, and traits in Coco

Copyright (c) 2025 Ocean Softworks, Sharkk