I am wondering what the most idiomatic text abbreviations for comparison operators are. I need to build a custom enum with them, so I cannot use their symbols. To me personally, these seem idiomatic:
== EQ != NEQ < LT <= LTE > GT >= GTE
However, some other languages seem to use 2-letter words:
EQ, NE, GT, GE, LT, LE.
But I have also seen these been used (for example in querydsl):
EQ, NE, GT, GOE, LT, LOE.
And C# seems to avoid the problem by just writing them out:
Equal, NotEqual, LessThan, LessThanOrEqual, GreaterThan, GreaterThanOrEqual.
It seems insignificant, but I need to decide for one variant nontheless. And I might as well try to choose the "right" one.
(Also sorry if software engineering isn't the right community for this, but I didn't seem to find a better place to discuss naming conventions)