All news

Published

Jik v0.1.0-alpha.16

Jik v0.1.0-alpha.16 is now available. This release adds the @profile directive, payloadless variant tags, digit separators in numeric literals, and indexed iteration over vectors.

Payloadless variant tags

Variants can now include tags that carry no value, which is useful for sentinel states.

variant Token:
    INTEGER: int
    EOF
end

token := Token.EOF{}

Readable numeric literals

Use underscores to group digits in integer, decimal, and exponent parts of numeric literals.

population := 1_234_567
pi := 3.141_592
large := 1.25e+1_0

Indexed vector iteration

Iterate over a vector's index and value together.

values := [3, 5, 7]
for index, value in values:
    print(index, value)
end