metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickwallen <>
Subject [GitHub] metron issue #681: METRON-1079 Add NaN as a keyword in STELLAR language
Date Tue, 15 Aug 2017 15:45:01 GMT
Github user nickwallen commented on the issue:
    Based on the link that you embedded in the tests, your implementation seems correct. 
I assume that these grammar rules are well reasoned and necessary, but it surely seems counter-intuitive
to me for this use case.
    > The equality operator == returns false if either operand is NaN. 
    > The inequality operator != returns true if either operand is NaN (ยง15.21.1). 
    > In particular, x!=x is true if and only if x is NaN, and (x<y) == !(x>=y) will
be false if x or y is NaN.
     Am I thinking about this all wrong?  Maybe I just need some lunch to get my blood sugar
up. :)

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message