So “=“ is being used for an equality test and not for assignment? That is a really poor design decision which will no doubt confuse anyone new to the language. I think the idea of OPA is great but the Rego syntax is really unfortunate.
Based on my very limited understanding: It's an unification operator from logic programming. Yes, `2 = 2` evaluates to true. But if you write `2 = x`, and `x` didn't exist yet, then it will introduce a binding `x` with value `2`. `x = 2` will have the exact same effect. `2 = 3` doesn't evaluate to false but assumes there was no decision.
Great deep dive sir.
How do you implement the plugin in VSCode. Downloaded "Open policy agent" plugin in vscode but not able to use it. Do you have any youtube video?
the video image is too poor, you need to fix it more
How would we implement OPA in Serverless Framework with GraphQL Microservices?
So “=“ is being used for an equality test and not for assignment? That is a really poor design decision which will no doubt confuse anyone new to the language.
I think the idea of OPA is great but the Rego syntax is really unfortunate.
Based on my very limited understanding: It's an unification operator from logic programming. Yes, `2 = 2` evaluates to true. But if you write `2 = x`, and `x` didn't exist yet, then it will introduce a binding `x` with value `2`. `x = 2` will have the exact same effect. `2 = 3` doesn't evaluate to false but assumes there was no decision.
very useful, thanks for sharing.
what is happening at 17:40?? as he scrolls, "test allow negative" changes to "test_allow negative" and back? WTF???
lighting lol
cool
what does the string data.pets[pet]?