Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Support MessagePack for Keys & Values (just a comparison function) #115

Open
erthink opened this issue Sep 6, 2020 · 2 comments
Open

Support MessagePack for Keys & Values (just a comparison function) #115

erthink opened this issue Sep 6, 2020 · 2 comments

Comments

@erthink
Copy link
Owner

erthink commented Sep 6, 2020

Actually only a comparison function for arbitrary msgpack messages is required.

@plq
Copy link
Contributor

plq commented Sep 15, 2020

Why doesn't memcmp() work? What exactly do you need?

@erthink
Copy link
Owner Author

erthink commented Sep 15, 2020

Why doesn't memcmp() work?
What exactly do you need?

MsgPack is (mostly) self-described data format.
Therefore, the comparison function for arbitrary msgpack messages allows you to compare many data types with due account it's semantics, including tuples.

For example, this allows you to order set of values of different types: boolean, double, int32, uint64, float, and so on, by the single comparison function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants