Skip to content

Release v0.6.0

Compare
Choose a tag to compare
@dosisod dosisod released this 29 Mar 06:02
· 533 commits to master since this release

Features/changes in v0.6.0:

Make types uppercase

x: Int = 1

Allow for declaring main function again

main() {
  # ok
}

# error, cannot export main
export main() Int {
  return 0
}

Lots and lots of operators

a := 1 isnt 1  # true

b := 10 mod 3  # 1

c := 1 < 2  # true
d := 1 <= 2  # true
e := 1 > 2  # false
f := 1 >= 2  # false

g := - 1  # -1

h := 2 ^ 3  # 8
i := 2.0 ^ 3.0  # 8.0

j := "this" is "that" # false

k := 0b11 << 2  # 0b1100
l := 0b1100 >> 2  # 0b11

m := (1 + 2)  # 3

Underscore seperators in numerics

x := 0b1100_0101

y := 123_456.0

Unreachable statement

if false {
  unreachable
}

Better errors

  • Add skull: prefix to fatal errors
  • Prepend filename to compilation errors