Skip to content

Specification

Nomi is a fully immutable, functional-first, statically typed language. Types are inferred within a function; function signatures are annotated.

These pages are generated from docs/spec.md in the repository.

§SectionWhat it covers
1IntroductionScope and companion documents, Notation and error text, Status callouts.
2Lexical structureSource text, Shebang line, Comments, Naming Conventions.
3LiteralsIntegers, Floats, Decimal literals, String Literals.
4TypesEvery declared type is named.
5Type relationsType identity, Assignability, Covariant conversion, Annotations and local inference.
6Declarations and scopeTop-level declarations, Bindings, Shadowing and redeclaration, once Bindings.
7Functions and closuresFunction declarations, Parameters, Calls, Lambdas.
8ExpressionsExpressions, patterns and types nest at most 256 levels deep.
9Statements and control flowStatements and the Unit rule, defer, Releasing resources, break and continue.
10PatternsTaught in Pattern Matching.
11FailureTaught in Pattern Matching.
12Interfaces, implementations and deriveTaught in Interfaces and Dispatch.
13IterationTaught in Iteration and Loops.
14Files, modules and importsFiles and modules, Import forms, Short names, Directory imports.
15Program executionEntry point, Scoped application fields, Context.
16ConcurrencyEvery task has an owner: a concurrent block or a supervisor.
17TestsTests, Groups, Attached tests, Assertions.
18Typed literals and keyword declarationsTyped literals, Keyword declarations, Phrases, Embedded files.
19Host declarations and Go bindingsHost and foreign declarations, Effects, Binding Go packages: gopkg and go, How Nomi types project to Go.