From a1bfae443cc1bf7dc6cb26bd98a440423201bfa0 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 3 Aug 2025 22:27:27 -0400 Subject: [PATCH] design: Add paragraph about how we need a skimming function in tape --- design/branched-generated-encoder.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/design/branched-generated-encoder.md b/design/branched-generated-encoder.md index 9360b6f..5bacc24 100644 --- a/design/branched-generated-encoder.md +++ b/design/branched-generated-encoder.md @@ -121,3 +121,8 @@ The functions shall take a pointer to a type that accepts any type like (~) the destination's base type. We should also probably just call `Generator.generateDecodeValue` directly on user defined types this way, keeping their public `Decode` methods just for convenience. + +The tape package shall contain a skimming function that takes a decoder and a +tag, and recursively consumes the decoder given the context of the tag. This +shall be utilized by the decoder functions to skip over values if their tags +or keys do not match up with what is expected.