KtorZ
c113582404
Support multi-clause patterns as syntactic sugar
...
And disable multi-patterns clauses. I was originally just controlling
whether we did disable that from the parser but then I figured we
could actually support multi-patterns clauses quite easily by simply
desugaring a multi-pattern into multiple clauses.
This is only a syntactic sugar, which means that the cost of writing
that on-chain is as expensive as writing the fully expanded form; yet
it seems like a useful shorthand; especially for short clause
expressions.
This commit however disables multi-pattern when clauses, which we do
not support in the code-generation. Instead, one pattern on tuples for
that.
2023-03-16 19:45:41 -04:00
..
2023-03-16 19:46:46 +01:00
2022-12-23 22:00:59 -05:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-01-14 20:23:17 +01:00
2023-03-16 19:46:46 +01:00
2023-02-09 00:57:14 -05:00
2023-02-09 00:57:14 -05:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2022-12-23 22:00:59 -05:00
2023-01-14 20:23:17 +01:00
2023-03-16 19:46:46 +01:00
2023-02-09 00:57:14 -05:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2022-12-23 22:00:59 -05:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2022-12-23 22:00:59 -05:00
2023-03-16 19:46:46 +01:00
2023-01-14 20:23:17 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2022-12-23 22:00:59 -05:00
2022-12-27 22:33:09 -05:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2022-12-29 17:40:21 +01:00
2023-03-16 19:46:46 +01:00
2023-02-09 00:57:14 -05:00
2023-03-16 19:46:46 +01:00
2023-01-14 23:33:49 -05:00
2023-01-14 23:33:49 -05:00
2023-01-14 23:33:49 -05:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-12 12:44:49 -04:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-02-04 22:07:56 -05:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-02-19 10:10:40 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 19:46:46 +01:00
2023-03-16 15:30:55 -04:00
2023-03-16 19:45:41 -04:00
2023-03-09 00:31:57 -05:00
2022-12-21 14:39:46 -05:00
2023-02-15 09:42:46 +01:00
2023-02-09 00:57:14 -05:00
2023-02-09 00:57:14 -05:00
2023-03-16 23:04:24 +01:00
2022-12-29 12:11:55 +01:00