Re: [Cbor] Another view on tags

Carsten Bormann <cabo@tzi.org> Fri, 29 March 2019 11:13 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2A49112026A for <cbor@ietfa.amsl.com>; Fri, 29 Mar 2019 04:13:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level:
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 1Jh6HNszKuxX for <cbor@ietfa.amsl.com>; Fri, 29 Mar 2019 04:13:43 -0700 (PDT)
Received: from smtp.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8CDE4120268 for <cbor@ietf.org>; Fri, 29 Mar 2019 04:13:43 -0700 (PDT)
Received: from dhcp-8804.meeting.ietf.org (dhcp-8804.meeting.ietf.org [31.133.136.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.uni-bremen.de (Postfix) with ESMTPSA id 44Vzd13d87zyvc; Fri, 29 Mar 2019 12:13:41 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <250C6053-B5B2-4A51-ACC7-3D156A8D17EF@island-resort.com>
Date: Fri, 29 Mar 2019 12:13:40 +0100
Cc: cbor@ietf.org
X-Mao-Original-Outgoing-Id: 575550818.735672-ebb944704d203497896e8218efb85972
Content-Transfer-Encoding: quoted-printable
Message-Id: <97D3468A-4265-41B8-BDAA-F3A4E14B9231@tzi.org>
References: <250C6053-B5B2-4A51-ACC7-3D156A8D17EF@island-resort.com>
To: Laurence Lundblade <lgl@island-resort.com>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/t6r7ctoly7LzFjCxpgM01_A8Udw>
Subject: Re: [Cbor] Another view on tags
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 29 Mar 2019 11:13:46 -0000

On Mar 29, 2019, at 12:07, Laurence Lundblade <lgl@island-resort.com>; wrote:
> 
> It seems possible and sometimes useful to use these “extended types” without an explicit tag.

Yes.  A somewhat informal way to make use of this in CDDL is:

{
  Nbf: ~time
  Exp: ~time
}

(Where `time` is a `#6.1(number)` as per prelude.)

Grüße, Carsten