Massive feature drop
- 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
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import std::exit_status
|
||||
import std::conv
|
||||
import std::number
|
||||
import std::tuple
|
||||
import std::list
|
||||
|
||||
const main2 := (
|
||||
println "Hello, world!"
|
||||
exit_status::success
|
||||
)
|
||||
|
||||
const main := conv::to_string t[1, 2, 3]
|
||||
const main := match t["set", "foo", 1] {
|
||||
t[= "set", key, val] =>
|
||||
$"Setting ${ key ++ $"${1 + 1}" } to ${val}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user