-
Notifications
You must be signed in to change notification settings - Fork 906
Description
This is a significant addition to the specification, and may very well not be something many people are interested in. However, it is one of my favorite features of another serialization library I know and love; and I would adore seeing it added to msgpack-proper.
Instead of having to make multiple calls to the various msgpack_pack_<type>()
functions, it would be incredible to have a function take a format specifier and a list of things to be serialized (à la printf()
); for example, being able to call something like the following and having it correctly pack both values:
msgpack_packf(pk, "i8,b", 25, true);
Similarly, offering a formatted unpacker (à la scanf()
) would offer similar benefits for parsing out msgpack serialized objects.
Is there any interest in this other than my own?