Re: [calsify] Updated JSCalendar draft version 08

Andri Möll <andri@dot.ee> Mon, 08 October 2018 13:04 UTC

Return-Path: <andri@dot.ee>
X-Original-To: calsify@ietfa.amsl.com
Delivered-To: calsify@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A75ED130DDC for <calsify@ietfa.amsl.com>; Mon, 8 Oct 2018 06:04:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=zonevs.eu header.b=A9YScSPH; dkim=pass (2048-bit key) header.d=srs1.zonevs.eu header.b=SUvp2XZJ; dkim=pass (2048-bit key) header.d=dot.ee header.b=fzPxuibg
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dIQhxF0e7wIA for <calsify@ietfa.amsl.com>; Mon, 8 Oct 2018 06:03:59 -0700 (PDT)
Received: from srs1.zonevs.eu (srs1.zonevs.eu [217.146.68.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E7EF2130DD4 for <calsify@ietf.org>; Mon, 8 Oct 2018 06:03:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zonevs.eu; q=dns/txt; s=oct2016; bh=N2qDXAmrxLD3o3JhT7WiTfyJHdy4MG9NUW0ppbFYMbA=; h=from:subject:date:message-id:to:mime-version:content-type:in-reply-to:references; b=A9YScSPHCOoxYn2mrC3meSSm4d3LxVXU0drzx6jZQ5v/HnFCNtPPBe6S7OkQ1Cy0HARvmvQGs oJ/O3XWktvnAQopW85UAd1W+NsbKrSXgAabniRHnRxVbNhqMBrTDAKaB9NiasXGnZZIVHdF4YQs Ag7TMdFHNLPEpjTKIfb2yc3Dcf+uk9sfXIW6cDL/MDw4Ec9LOrIP7ROi+UuUCp//tWPGqWTUkL3 aebtbCZaRNUQPHBKI1fRYpztJUboyPy64w4SDzIjpyiG7huI2UhZvg+waWTkuDZVoCUp/PcPQW2 v+aSxKYTSZnKGnftdHPjOk4FQ7454IueZJTiQQteakrw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=srs1.zonevs.eu; q=dns/txt; s=oct2016; bh=N2qDXAmrxLD3o3JhT7WiTfyJHdy4MG9NUW0ppbFYMbA=; h=from:subject:date:message-id:to:mime-version:content-type:in-reply-to:references; b=SUvp2XZJResXlaKDy/EweY9KWY7jHRVUGG3STywYiUYsL7MdM0lJbVBV0GoZzpRUfghsLFFsD 84fCm6GfvRt57AORNGPv2eNe7BmZDooPh3a8IexC/z4Q+xQ2e/WgycB+rwlG29W9IfJNDXjbDQL 2N1BJQidCqahQNq0srSnXNXcL9jPrhKbGQD2wsMejfodkdQpxkWteLi5xwlxFgm90sCQ3CjU/2q uJgLxe78VfurTs0tT3J8/hKR4ePZnHG+vnGnzHsl0Q37BEavNisG6fpXYhBZ2KOBtqVhZ40bHYq fmRjaRzuz1KG8baxbIYF4Ggl+aCA04YwirpRI007ehUQ==
Received: from smtp.zone.ee ([217.146.66.124] smtp.zone.ee) by srs1.zonevs.eu (ZoneMTA Forwarder) with ESMTP id 16653c6dcff000fe03.001 for <calsify@ietf.org>; Mon, 08 Oct 2018 13:03:53 +0000
X-Zone-Loop: 5c5d08462b367546c8a206ccf5d5dc40a4b1a9d9ca07
Received: from localhost (43-221-50-195.dyn.estpak.ee [195.50.221.43]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: d3623m47440@@) by smtp.zone.ee (Postfix) with ESMTPSA id F1871128B5C6 for <calsify@ietf.org>; Mon, 8 Oct 2018 16:03:52 +0300 (EEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dot.ee; s=zone; t=1539003833; bh=ISPLhtlPlBqOD5OS5G/G9lQsmryJBdemt30GOB18scY=; h=Subject:To:References:From:Date:In-Reply-To; b=fzPxuibgjdBw686as9xK8IJzou8VJ/39X7syHUh99RFJ4UvVeEq1N2r3oUU3Pj/1/ O7u3QhT9DBAiT/H7zVUBIcAUkBwWf7Dgcv6PHIJLpWTJbEc4L3+xYLT64ilIxoIHCE yveQ6V+ZkIPLWczw3qZoxu2MCU3eYTHaqxdhI3vX5wQEp3XCqpe3Gor43Q9Vr4cOTx PoBfwS23CdTUeP4DvfKHUehn8WVVokKJEFUtLlxK4Hd/AC7WrIN6JYUoJMSVqYm84C 0cfDyYjm/tl/qymHZ3iEabVwzB/ucwuGypu6v6qLBdRxum3YzZd5YBRpW+QpEF1xXS Nz5OXXF3s0J3g==
To: calsify@ietf.org
References: <4e76bb0f-0b05-409f-960c-add3f39f702e@sloti22d1t06> <e25fe2f3-c199-c096-1aa4-593313ff5251@dmfs.org> <b32127ab-f3d0-2354-4d3f-fddd4f8755f8@dot.ee> <b05d34e5-2418-4ee8-9025-9bc12263d251@sloti22d1t06> <7f0bb4a3-b7c0-bcc1-aabf-692217d509c5@dmfs.org>
From: Andri Möll <andri@dot.ee>
Message-ID: <917758f0-2a55-bc1a-44ce-1edee5730ae0@dot.ee>
Date: Mon, 08 Oct 2018 13:03:51 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0
MIME-Version: 1.0
In-Reply-To: <7f0bb4a3-b7c0-bcc1-aabf-692217d509c5@dmfs.org>
Content-Type: multipart/alternative; boundary="------------F2ED404DABDC048E66DCC9A7"
Content-Language: en-US
X-Zone-Spam-Resolution: no action
X-Zone-Spam-Status: No, score=-3.270834, required=15, tests=[HFILTER_HOSTNAME_5=3, BAYES_HAM=-2.999947, ARC_NA=0, TO_DN_NONE=0, MID_RHS_MATCH_FROM=0, R_DKIM_ALLOW=-0.2, RCVD_VIA_SMTP_AUTH=0, RCVD_TLS_ALL=0, NEURAL_HAM=0, MIME_GOOD=-0.1, PREVIOUSLY_DELIVERED=0, DKIM_TRACE=0, FROM_EQ_ENVFROM=0, RCPT_COUNT_ONE=0, ASN=0, IP_SCORE=-3.070887, FROM_HAS_DN=0, RCVD_COUNT_ONE=0, ONCE_RECEIVED=0.1]
Archived-At: <https://mailarchive.ietf.org/arch/msg/calsify/ORhtDTBycziM3t2JC2aEvdKJTcI>
Subject: Re: [calsify] Updated JSCalendar draft version 08
X-BeenThere: calsify@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <calsify.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/calsify>, <mailto:calsify-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/calsify/>
List-Post: <mailto:calsify@ietf.org>
List-Help: <mailto:calsify-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/calsify>, <mailto:calsify-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Oct 2018 13:04:03 -0000

On 10/8/18 12:48 PM, Marten Gajda wrote:
>
>
> For me it would preferable to only allow a notation which contains no 
> "T" though. Allowing something like PT0H0M0S is just an additional 
> source for errors. People could come up the idea of specifying 
> PT86400S and argue that this equals 24 hours, "which is a day". After 
> all, one of the objectives of this new format is to "make it hard to 
> get it wrong."
>
> Having a format which is strict in cases like this makes it much 
> easier to argue about that.

We're talking about a dozen and a half character regular expression here 
that covers all combinations of nominal and accurate components without 
problems. What additional errors? :P

Let people specify PT86400S as an "alias" for PT24H or PT1440M. I've 
brought up three atoms in the ISO 8601 duration specification before --- 
months, days and seconds. It's very likely a duration parser internally 
decomposes those three. Whether it chooses to round to hours and minutes 
when serializing is its thing. And I doubt most distinguish between 
nominal and accurate durations at the type level anyway, thereby if all 
three atoms are zero in the input, whether the output serializes to PT0S 
or P0D is anyone's guess and shouldn't be relied on.