You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think what I want for things like this is some kind of "binary format string" eg
const auto prefix = format_binary("%u16be %u8bytes %u8", length, label, hash_val);
(not exactly this, those format string choices suck and are just for exposition; there is probably a lot of prior art here)
As of recently, we have the internal concat() helper for this which should already do such "binary string operations" as efficiently as possible. But the resulting code is often verbose (with multiple type conversions) and hard to understand.
I think what I want for things like this is some kind of "binary format string" eg
(not exactly this, those format string choices suck and are just for exposition; there is probably a lot of prior art here)
As of recently, we have the internal
concat()
helper for this which should already do such "binary string operations" as efficiently as possible. But the resulting code is often verbose (with multiple type conversions) and hard to understand.Originally posted by @randombit in #4455 (comment)
The text was updated successfully, but these errors were encountered: