pllua-ng icon indicating copy to clipboard operation
pllua-ng copied to clipboard

datum type comparison ops

Open RhodiumToad opened this issue 5 years ago • 1 comments

Users are surprised that == does not work for datum types (other than Numeric and types auto-converted to Lua values). Consider adding :equal method and __eq metamethod to all datum types that have a default btree or hash opclass. Also __lt and friends for types with a btree opclass?

RhodiumToad avatar Apr 16 '19 09:04 RhodiumToad

This sounds great, and I vote for the shortforms; :eq :lt :gt

bjne avatar Apr 18 '19 10:04 bjne