Skip to content

Releases: saki-lang/saki-dev

v0.0.1-alpha.2

06 Nov 13:40
Compare
Choose a tag to compare
v0.0.1-alpha.2 Pre-release
Pre-release

Add support for sum type (union type)

e.g.

def describeValue(value: (Bool | ℤ | String)): String = match value {
    case true => "It's true!"
    case false => "It's false!"
    case n: ℤ => "It's an integer: " ++ n.toString ++ "!"
    case s: String => "It's " ++ s ++ "!!!!!"
}

eval describeValue(6)       // Output: "It's an integer: 6!"
eval describeValue(true)    // Output: "It's true!"
eval describeValue("mygo")  // Output: "It's mygo!!!!!"

v0.0.1-alpha.1

03 Nov 11:36
Compare
Choose a tag to compare