Adam Goertz 91570cc42d zig-reduce: Reduce if expressions
Perform these transformations in this priority order:
1. If the `else` expression is missing or an empty block, replace the condition with `if (true)` if it is not already.
2. If the `then` block is empty, replace the condition with `if (false)` if it is not already.
3. If the condition is `if (true)`, replace the `if` expression with the contents of the `then` expression.
4. If the condition is `if (false)`, replace the `if` expression with the contents of the `else` expression.
2023-11-06 04:31:55 +00:00
..
2023-11-03 23:18:21 -04:00
2023-11-03 12:48:53 +01:00
2023-11-03 23:18:21 -04:00
2023-11-03 23:18:21 -04:00
2023-10-31 21:37:35 -04:00
2023-10-21 21:24:55 +00:00
2023-11-03 23:18:21 -04:00
2023-11-03 23:18:21 -04:00
2023-11-03 23:18:21 -04:00
2023-10-27 23:31:20 -04:00
2023-11-03 23:18:21 -04:00
2023-11-03 23:18:21 -04:00
2023-11-03 23:18:21 -04:00
2023-10-21 21:24:55 +00:00
2023-11-03 23:18:21 -04:00
2023-11-06 04:31:55 +00:00
2023-11-03 23:18:21 -04:00
2023-04-22 13:09:15 +03:00
2023-10-02 15:31:49 -06:00
2023-10-23 22:42:18 -04:00
2023-10-31 21:37:35 -04:00
2023-10-02 15:31:49 -06:00
2023-10-21 21:24:55 +00:00
2023-10-29 07:20:36 -04:00
2023-10-31 21:37:35 -04:00
2023-10-25 04:28:30 -04:00
2023-11-03 23:18:21 -04:00
2023-11-03 23:18:21 -04:00
2023-11-03 23:18:21 -04:00
2023-10-27 03:33:49 -04:00
2023-10-26 22:35:38 -04:00
2023-10-21 21:24:55 +00:00
2023-10-21 21:24:55 +00:00