Files
regorus/tests/interpreter/cases
Anand Krishnamoorthi 316f3a7692 early return (#189)
If a rule is written to produce a constant value, then not all iterations of loops
within it need to be executed. Execution can stop via early return once the first iteration
that produces a value has been executed.

This brings forth the question : What if one of the subsequent iterations would have resulted
in an error?
e.g:
x {
  [1, "hello"][_] + 1
}

Such errors are not raised; consistent with OPA.

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
2024-04-22 07:41:35 -07:00
..
2023-12-27 17:00:40 -08:00
2023-02-11 06:37:04 +05:30
2023-10-24 10:11:50 -07:00
2023-12-23 11:55:25 -08:00
2023-12-27 17:00:40 -08:00
2023-12-06 07:59:04 -08:00
2024-02-11 16:52:12 -08:00
2023-10-24 10:11:50 -07:00
2023-10-24 10:11:50 -07:00
2024-04-22 07:41:35 -07:00
2024-01-31 21:39:02 -08:00
2023-11-27 10:02:37 -08:00
2023-12-06 07:59:04 -08:00
2024-02-26 17:31:48 -08:00
2023-02-09 19:40:35 +00:00
2023-10-09 14:27:31 -07:00