- pattern matching seems to be correct - dynamic dispatch works with the to_string example - template strings as a last-minute addition - interpreter revamp, virtual stack for abort safety
11 lines
215 B
Plaintext
11 lines
215 B
Plaintext
import std::exit_status
|
|
import std::conv
|
|
import std::number
|
|
import std::tuple
|
|
import std::list
|
|
|
|
const main := match t["set", "foo", 1] {
|
|
t[= "set", key, val] =>
|
|
$"Setting ${ key ++ $"${1 + 1}" } to ${val}"
|
|
}
|