Official website

Quick search

Search pages in English or हिंदी. Detailed language reference is in Scarp Docs.

Top 6 website pages

Language prerelease · Published source

Scarp alpha.12: typed records, variants and collections

Scarp v0.0.6-alpha.12 introduces interpreter-backed records, variants, option/result, immutable lists and deterministic maps.

v0.0.6-alpha.12 was published on 16 November 2026. This experimental prerelease extends Scarp's interpreted aggregate values; it does not make Scarp a stable production compiler.

Typed records, variants and destructuring

Source records and tagged variants carry checked types. Nested destructuring is available for records, tuples and fixed-size arrays, and variant matching checks that all cases are handled. The compiler rejects incomplete matches rather than silently using an unhandled alternative.

Option and result types

Concrete option<T> andresult<T, E> values model missing data and errors. Early return using bind value = expression?; propagates a compatible empty option or error result. These are concrete type constructors, not a release of general user-defined generics. Canonical type identity is retained across source modules.

Immutable lists and deterministic maps

Typed lists and maps return new snapshots when changed; existing values remain immutable. Map key and value projections have canonical ordering. Operations are bounded by allocation and work budgets, and removing an entry copies only the retained entries into the new snapshot.

A multi-file project you can inspect

The tagged compiler source includes a task-board project with typed actions, pure transitions, deterministic output, lookups, validation and automated project tests. Build the matching prerelease or use its platform archive and run the commands below from the tagged source tree.

Terminal · from the tagged Scarp source root
scarp verify examples/projects/task-board
scarp launch examples/projects/task-board
scarp test examples/projects/task-board

Read the tagged task-board example and official release notes. The download page pins the published Windows x64, Linux x64 GNU and Apple Silicon macOS SHA-256 digests.

Compatibility boundaries

Aggregates are interpreter features. Experimental native emitters reject unsupported aggregate programs. A general native compile CLI, host-side data engine and user-defined generics are not included. Exact decimal values from alpha.11 and interactive input from alpha.10 remain available with their documented limits. The website compatibility matrix only covers its specifically tested source fixtures, not every new aggregate program.