summaryrefslogtreecommitdiff
path: root/test/matchstruct.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-10-28 15:39:01 -0400
committerOri Bernstein <ori@eigenstate.org>2013-10-28 15:39:01 -0400
commit89e514d5355f9036a30c4a41cacc465e5999aa76 (patch)
treef6402fddce8bde453291627cdd4d8db2ad0fd59e /test/matchstruct.myr
parent682c4ce6114cb44e2ad95a75269585f6e1da8150 (diff)
downloadmc-89e514d5355f9036a30c4a41cacc465e5999aa76.tar.gz
Streamline syntax.
Move from: match foo bar: action ;; baz: action ;; To: match foo | bar: action | baz: action ;;
Diffstat (limited to 'test/matchstruct.myr')
-rw-r--r--test/matchstruct.myr8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/matchstruct.myr b/test/matchstruct.myr
index 38bc5e0..e6bde0f 100644
--- a/test/matchstruct.myr
+++ b/test/matchstruct.myr
@@ -13,12 +13,10 @@ const main = {
v.v2 = 40
v.v3 = 10
match v
- [.v1 = x,
- .v2 = y,
- .v3 = 10]:
+ | [.v1 = x, .v2 = y, .v3 = 10]:
-> x + y
- ;;
- _: std.die("Wat");;
+ | _:
+ std.die("Wat")
;;
-> 0
}