-
Notifications
You must be signed in to change notification settings - Fork 338
-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Kind Interface and Pointer to Facts #345
Comments
Hi @rifqifatih I can not figure any implication at this point. Please submit your PR including a unit test that shows whether your fix really works. |
rifqifatih
added a commit
to rifqifatih/grule-rule-engine
that referenced
this issue
Jan 14, 2023
rifqifatih
added a commit
to rifqifatih/grule-rule-engine
that referenced
this issue
Jan 14, 2023
rifqifatih
added a commit
to rifqifatih/grule-rule-engine
that referenced
this issue
Jan 14, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I notice there is a similar Issue which was closed. However, I think there is some use case which can still be consider supporting interface / pointer.
I'm currently providing the Facts through REST API which can be in any arbitrary form, hence
map[string]interface{}
. But rule evaluation gives meor
if I use pointer.
Solution
I propose that in
reflectmath.go/Evaluate*
handles these "reference" type with e.g.:Would gladly make PR contribution but I would like to open this for discussion first to know what are the implications and if it's aligned with the design.
The text was updated successfully, but these errors were encountered: