Deterministic, explicit, but never boring.
A new modern language just for fun.
Nue prioritizes deterministic syntax and explicit semantics. Ownership, borrowing, const evaluation, and protocol-based abstraction are designed to stay predictable as systems grow.
Features
- Ruby-ish syntax and deterministic grammar with strict
EOLtoken rules. - Trailing blocks for clearer syntax, including non-local returns and
break/continue. - Guard-first control flow
guardwith explicit early-exit rules. - Uniformed function call syntax (UFCS) for method-style calls on any value.
- Function overloading enables multiple dispatch, while protocols provide localized resolution.
- Predictable type inference, no implicit conversions.
- Ownership and explicit transfer with
moveandcopy. - Function arguments are borrow-by-default,
ownandinoutwhen needed. - GC-less memory management with compiler-inferred lifetimes, without the hassle of manual annotations.
- Non-storable view types prevent accidental long-lived borrows:
ref,str, andslice. deferstatement for deterministic resource management.- Algebraic data types (ADTs) with first-class support for
enumandstruct. - Pattern matching with exhaustive checks and irrefutable patterns.
- Generics and protocols with associated types keep abstractions precise.
- Opaque return types with
some, preserving static dispatch. - Compile-time evaluation
constfor values and const generics.
Statusinitializing
Output