ietf-822
[Top] [All Lists]

Re: Revisiting RFC 2822 grammar

2004-01-21 05:38:33

Graham Klyne wrote:


At 22:26 20/01/04 +0000, (someone) wrote:

>But maybe it should be " 4DIGIT / %x31-39 3*DIGIT / obs-year ", i.e.
>years with more than 4 digits must not have leading zeros.


Er, shouldn't that be:

  4DIGIT / %x31-39 4*DIGIT / obs-year

to avoid syntactic ambiguity between the first and second options?


Why treat 4-digit years with leading zeros specially?  I.e. that allows:
0001
0099
0345

Why not:

   %x31-39 3*DIGIT / obs-year