Not coalescing around None-aware
Not coalescing around None-aware
Posted Dec 23, 2022 20:48 UTC (Fri) by shironeko (subscriber, #159952)In reply to: Not coalescing around None-aware by iabervon
Parent article: Not coalescing around None-aware
How about just have message return it's proper serialized length, maybe with caching so the length check is efficient everywhere you need it and you avoid having to leak the header body footer logic to every call site which will get hard to maintain fast.