Use new C3 language features (v0.6.7 and v0.6.8)
masterSeveral language features were introduced or modified in recent versions:
- Generic Syntax (v0.6.8): Use
--enable-new-genericsto enableFoo{int}syntax. - Short Function Syntax (v0.6.7): Supports
fn int test() => @pool() { return 1; }. - Compile-time Array Operations (v0.6.7): Supports compile-time array assignment, increment/decrement, and assignment operators (e.g.,
$c[1] += 3). - Array Initialization (v0.6.7): Supports cast-style initialization like
(int[*]) { 1, 2 }and+++on all array types. - Contracts (v0.6.7):
@requireand@ensurecontracts are no longer treated as conditionals; they must explicitly evaluate to abool. - Deprecations (v0.6.8): The
{| |}expression blocks are deprecated. The@operator(construct)macro is also deprecated.