5 ms·
I was going to give you the usual "now there are 15 different standards" but this is actually really well thought out. How does it handle leading zeros in the
by kortex 5y ago
I was going to give you the usual "now there are 15 different standards" but this is actually really well thought out.
How does it handle leading zeros in the year, like Long Now likes to do? https://blog.longnow.org/02013/12/31/long-now-years-five-digit-dates-and-10k-compliance-at-home/ https://blog.longnow.org/02013/12/31/long-now-years-five-dig...
- kstenerud 5y agoFor 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...