Blocks after every
but not after some
?
#279
Answered
by
anderseknert
mladedav
asked this question in
OPA and Rego
-
I have just started learning the language and I want to ask why there are no braces (or more precisely they are disallowed) after
while here they are compulsory after
Is there a reason for this? Cannot the braces be used (and not omitted) for both cases? |
Beta Was this translation helpful? Give feedback.
Answered by
anderseknert
Sep 29, 2022
Replies: 1 comment 3 replies
-
Hi there! That's a very good question :) The reason |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
mladedav
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there! That's a very good question :) The reason
every
requires a block is described briefly in the original issue for the feature: open-policy-agent/opa#2090 ... perhaps a word or two could be added about this in the docs for the every keyword 🤔