[ 
https://issues.apache.org/jira/browse/METRON-1090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16330717#comment-16330717
 ] 

ASF GitHub Bot commented on METRON-1090:
----------------------------------------

Github user cestella commented on the issue:

    https://github.com/apache/metron/pull/687
  
    Hmm, so this is an interesting one.  We sorta have a de facto assignment 
outside of stellar, but I'd be interested in having it moved into stellar like 
this.  I'd also be sorta ok with it being `=`, but we chose `:=` earlier, so 
that is an open question as to whether it should be consistent.
    
    Also, it seems like processing a stellar statement should return 2 things 
now:
    1. the output value
    2. optionally a variable assigned
    
    We should also refactor the `StellarAssignment` class to use this somehow.  
Other than that, this seems extremely promising!


> STELLAR Add Assignment capability to Stellar language
> -----------------------------------------------------
>
>                 Key: METRON-1090
>                 URL: https://issues.apache.org/jira/browse/METRON-1090
>             Project: Metron
>          Issue Type: New Feature
>            Reporter: Otto Fowler
>            Assignee: Otto Fowler
>            Priority: Major
>
> Add support for =, +=, -=, *=, /= for variables in stellar.
> foo = 5  returns 5 AND sets foo to 5 if the VariableResolver supports it.
> The shell should be changed to assign variables using this syntax, because 
> exposing the left side to stellar allows catching errors for invalid keywords 
> in left side.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to