3 ms·
Yeah, the author seems to both understand the nesting issue, and yet not understand how it's not an issue. As per the format guidelines, you shouldn't have dee
by cbsmith 6y ago
Yeah, the author seems to both understand the nesting issue, and yet not understand how it's not an issue.
As per the format guidelines, you shouldn't have deeply nested structures... or at least if you do it should be in cases where only one or two layers of nesting are decoded at any given stage (I've done this with "envelope" messages).
Of course, there are ways to write serialized lengths of nested elements recursively, you just have to do it yourself. It's just not what you normally want to do, so the standard library and compiler don't emit that logic. If you are going down that road, you gotta ask yourself why.