Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
Development · Evolving reference

Modules & imports

Dependencies through declarations.

Sn is under heavy development. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. Read the status →

Module declaration

module game.player;

Every source file declares its module. Sn language modules are distinct from the host build system's module ownership.

Import forms

import engine.math;
import engine.render as render;
from engine.ecs import Entity, World;

Imports are file-scoped. A qualified import retains its full namespace; as supplies an explicit alias. Selected imports introduce only the requested names.

Boundaries

  • Glob imports are not supported.
  • Imports do not textually include source.
  • Imports do not implicitly re-export names.
  • A qualified call still requires the module to be imported.

Package delivery

A module declaration does not imply a finished public package registry or package-manager workflow. General package distribution remains ongoing work.

Documentation snapshot: October 24, 2026 About versions ↗
Searching Development · language & standard library