Status: Draft v0.1
Author: Raccoon Core Team
Date: 2025-10-05
Nominal type system, Java-like casts, Nullable handling, effect inference. All functions must return a value or void.
nullis the only null literal; uninitialised locals/fields default tonull.- Strict-null mode enforces
Nullable<T>.
- All functions return a value or
void(MISSING_RETURN,VOID_WITH_VALUE). - If a body calls fallible APIs, signature must be
ResultorEither(FALLIBLE_CALL_IN_INFALLIBLE_FN).
(Type) exprorexpr as Type.- Upcasts allowed; downcasts only after proven narrowing; else
INCOMPATIBLE_CAST. tryCast<T>(x): Result<T, Error>when dynamic.
maySuspendinferred from suspension points.mayErrorinferred fromResultflows.
- Inline records: exact-shape structural.
- Interfaces/classes/enums/types: nominal; no declaration merging.
throwandundefinedreserved and forbidden.
INCOMPATIBLE_CAST, FALLIBLE_CALL_IN_INFALLIBLE_FN, UNHANDLED_RESULT, NULL_IMPLICIT_INIT, NULL_FIELD_IMPLICIT_INIT, MATCH_HIDES_CASES.