Restrict relation operators to ints #710

Closed
zxq9 wants to merge 1 commits from github/fork/radrow/rel-ops into lima
zxq9 commented 2020-02-08 06:57:26 +09:00 (Migrated from gitlab.com)

Created by: radrow

I see no reason to compare strings and functions using < operator, especially when it does nothing but return false.

I am working now with a custom datatype that represents some numbers and I accidentally used these operators several times which leaded to irritating bugs.

*Created by: radrow* I see no reason to compare strings and functions using `<` operator, especially when it does nothing but return `false`. I am working now with a custom datatype that represents some numbers and I accidentally used these operators several times which leaded to irritating bugs.
zxq9 commented 2020-02-08 08:38:50 +09:00 (Migrated from gitlab.com)

Created by: radrow

Tests need to be updated if we agree for it

*Created by: radrow* Tests need to be updated if we agree for it
zxq9 commented 2020-02-08 16:52:01 +09:00 (Migrated from gitlab.com)

Created by: UlfNorell

They don't always return false. Comparison is lexicographic on the underlying FATE representation.

*Created by: UlfNorell* They don't always return false. Comparison is lexicographic on the underlying FATE representation.

Pull request closed

Sign in to join this conversation.
No description provided.