4 ms·
For the text variant, it just parses the year field as an integer, so leading zeroes would generate the same year value as if you'd omitted them.
by kstenerud 5y ago
For the text variant, it just parses the year field as an integer, so leading zeroes would generate the same year value as if you'd omitted them.
- kortex 5y agoNice, that's the parsimonious way to handle it. I'm really digging this system in general. I hope it gets more traction.
- dmurray 5y agoOn the other hand, valid data may now be unreasonably long. What if someone gives you a string that starts with 10^12 leading zeros?
- kstenerud 5y agoThis is where security and limits comes in: https://github.com/kstenerud/concise-encoding/blob/master/ce-structure.md#security-and-limits https://github.com/kstenerud/concise-encoding/blob/master/ce...