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

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

Github user jjmeyer0 commented on the issue:

    https://github.com/apache/incubator-metron/pull/392
  
    @cestella I thought about the case where a number such as '12345678910' 
should be considered a long or not. The biggest reason why I chose not to go 
this way, was because we were basing many things on the way Java does things, 
and Java would throw a compile time error if this example was not followed by 
any l/L. Also, I had some concerns in a scenario where two integers were added, 
a long was automatically created from them, and then passed to a function that 
only accepts integers. In this case a very interesting error may occur, and 
confuse end users. Not sure if any of those are valid, but that was my thought 
process. What do you think?


> Add Support in Stellar for Long and Float Literals
> --------------------------------------------------
>
>                 Key: METRON-616
>                 URL: https://issues.apache.org/jira/browse/METRON-616
>             Project: Metron
>          Issue Type: Improvement
>            Reporter: Josh Meyer
>
> Currently Stellar only supports literals for doubles and integers. However, 
> it is possible for functions to return longs and floats. An example, are the 
> timestamp functions. These will return a long. It would be useful for a 
> Stellar user to also use Java style floats and longs (eg. 3L, 3F, 3.3f, 
> etc.). 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to