diff options
author | Ori Bernstein <ori@eigenstate.org> | 2013-10-28 15:39:01 -0400 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2013-10-28 15:39:01 -0400 |
commit | 89e514d5355f9036a30c4a41cacc465e5999aa76 (patch) | |
tree | f6402fddce8bde453291627cdd4d8db2ad0fd59e /test/matcharray.myr | |
parent | 682c4ce6114cb44e2ad95a75269585f6e1da8150 (diff) | |
download | mc-89e514d5355f9036a30c4a41cacc465e5999aa76.tar.gz |
Streamline syntax.
Move from:
match foo
bar:
action
;;
baz:
action
;;
To:
match foo
| bar:
action
| baz:
action
;;
Diffstat (limited to 'test/matcharray.myr')
-rw-r--r-- | test/matcharray.myr | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/matcharray.myr b/test/matcharray.myr index 67e8efe..38e3688 100644 --- a/test/matcharray.myr +++ b/test/matcharray.myr @@ -4,10 +4,9 @@ const main = { var v = [2, 40, 10] match v - [x, y, 10]: + | [x, y, 10]: -> x + y - ;; - _: std.die("Wat");; + | _: std.die("Wat") ;; -> 0 } |