This modifies the panic feature to accept a boolean or a string. If true or not empty, then it will cause the panic. This makes some of the error code a little less ugly.
8 lines
112 B
Plaintext
8 lines
112 B
Plaintext
-- main.mcl --
|
|
# This should not panic.
|
|
panic(false)
|
|
panic("")
|
|
test "hello" {}
|
|
-- OUTPUT --
|
|
Vertex: test[hello]
|