Open Licenser opened 8 months ago
I agree, definetly worth considering and revisiting! I pulled this in it's own issue so it's nut buried in a completed PR :)
a few startingpoints:
1) the tape is (assuming no bugs) guaranteed to be valid JSON, all validation from formating (numbers, strings etc) and structure (correct k/v of objects, correct nesting etc) are checked in the second stage of parsing
2) for derives we need fallibility as we can have a valid json that does not match the expected structure that the derive demands
3) for DOM like structures (owned::Value, borrowed::Value that cover the entire JSON value space) we can expect all translation from tape -> dom to be correct
4) for DOM like structures that may not cover the entire value space, there is a chance of failures
Originally posted by @NightMare-Vortex in https://github.com/simd-lite/simd-json-derive/issues/54#issuecomment-1783574836