Releases: saki-lang/saki-dev
Releases · saki-lang/saki-dev
v0.0.1-alpha.2
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
Full Changelog: https://github.com/saki-lang/saki-dev/commits/v0.0.1