Re: [http-state] cookie dates [was Re: Status update]

On Wed, Aug 12, 2009 at 2:42 PM, Ian Hickson<ian@hixie.ch> wrote:
> On Wed, 12 Aug 2009, Julian Reschke wrote:
>>
>> For instance, when I look at "month" I find:
>>
>> "2.4.5.1 Months
>>
>> A month consists of a specific proleptic Gregorian date with no time-zone
>> information and no date information beyond a year and a month. [GREGORIAN]
>>
>> A string is a valid month string representing a year year and month month if
>> it consists of the following components in the given order:
>>
>>    1. Four or more digits, representing year, where year > 0
>>    2. A U+002D HYPHEN-MINUS character (-)
>>    3. Two digits, representing the month month, in the range 1 ≤ month ≤
>> 12"
>>
>> So it defines "month" (in bold) to be a date, consisting of a year and a month
>> (non-bold). This is confusing.
>>
>> Why not simply say:
>>
>>   year  = 4*DIGIT ; 4 or more digits, year > 0
>>   month = 2DIGIT  ; 2 digits, 1 <= month <= 12
>>
>>   month-string = year "-" month
>>
>> ?
>
> That's a matter of opinion. Personally I find the prose version much more
> approachable.

Fwiw, I also find the prose version currently in the spec much easier
to understand.

~TJ

Received on Wednesday, 12 August 2009 20:03:31 UTC