Github user ottobackwards commented on a diff in the pull request:
https://github.com/apache/metron/pull/1021#discussion_r190004639
--- Diff:
metron-platform/metron-common/src/main/java/org/apache/metron/common/configuration/enrichment/handler/StellarConfig.java
---
@@ -142,8 +143,14 @@ else if(kv.getValue() instanceof List) {
{
--- End diff --
Something like that, in leu of literal scopes ( which would have a
hierarchy ) might work out.
I'm not trying to shoot down your idea, I just want to understand it, and
we approach things differently.
I think in the end we want to get to
interface Scope {
Scope getParent()
Resolve()
Get()
Put()
}
before calling a function/lambda
Scope scope = new Scope(stack.peek())
stack.push(scope)
call function(scope)
stack.pop(scope)
---