Files
aji/docs/reference/type-properties.md
T
dev 17a55a7fef Initial import: Aji 0.1 draft spec and Zig scaffolding
Draft specification, RFCs, reference registries and examples, plus the
reference-implementation skeleton: build.zig, diagnostic envelope with
error-code registry synced to docs, aji CLI, conformance runner with seed
tests, CI and contributor docs.
2026-10-04 11:59:13 +03:00

1.1 KiB

Type Properties

Aji 0.1 uses compiler-known structural properties rather than a user-defined trait system.

Copy

A Copy value may be duplicated without changing ownership semantics.

Typical examples: integers, booleans, small aggregates containing only Copy fields.

Not Copy: Own<T>, Region, Island<T>, File, Socket, task/thread handles.

Send

A Send value may move to another concurrent execution context.

A type becomes non-Send if it contains thread-affine/local state.

Share

A Share value may be observed concurrently through immutable access.

Deeply immutable values are normally Share.

Interior-mutability wrappers must establish their own synchronization semantics to qualify.

Freeze

A Freeze type may participate in deep immutable conversion.

External resources that remain operational/mutable may prevent Freeze.

Local

A Local value is tied to its current execution context and prevents migration/transfer.

Examples may include thread-local handles, event-loop-local registrations or platform UI objects.