Re: [Cbor] dCBOR moving from numerically-typeless systems

Carsten Bormann <cabo@tzi.org> Sun, 12 March 2023 20:47 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 718B7C14CF1C for <cbor@ietfa.amsl.com>; Sun, 12 Mar 2023 13:47:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BqAttkFrD3D4 for <cbor@ietfa.amsl.com>; Sun, 12 Mar 2023 13:47:11 -0700 (PDT)
Received: from smtp.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E42C4C14CE53 for <cbor@ietf.org>; Sun, 12 Mar 2023 13:47:10 -0700 (PDT)
Received: from [192.168.217.124] (p548dc9a4.dip0.t-ipconnect.de [84.141.201.164]) (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 4PZX0F0PynzDCbJ; Sun, 12 Mar 2023 21:47:09 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <382FB8D4-03B8-4B92-B7BA-B3760D77D258@wolfmcnally.com>
Date: Sun, 12 Mar 2023 21:47:08 +0100
Cc: cbor@ietf.org
X-Mao-Original-Outgoing-Id: 700346828.621434-4df89acbe223db8d3c24a089264959af
Content-Transfer-Encoding: quoted-printable
Message-Id: <7AAE85BD-AD41-445C-B747-B80523B068ED@tzi.org>
References: <2B1FA8CC-AD83-4E58-BE27-B6504F555694@wolfmcnally.com> <8551021E-A1A2-4764-B0DF-D3E7591EC9B6@tzi.org> <FD5D8771-E1CF-4C63-A141-054DE0085399@wolfmcnally.com> <D714A0A4-7452-4C45-8542-7A57A75C9748@tzi.org> <35A71381-A9DD-479C-A7D5-9B06F70B6F50@wolfmcnally.com> <3CE988BD-C87E-4A0C-ADA8-79124FE1FB51@tzi.org> <382FB8D4-03B8-4B92-B7BA-B3760D77D258@wolfmcnally.com>
To: Wolf McNally <wolf@wolfmcnally.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/CQ51f8aiccalxv_TCzWtmi8Yxwc>
Subject: Re: [Cbor] dCBOR moving from numerically-typeless systems
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.39
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: Sun, 12 Mar 2023 20:47:12 -0000

On 2023-03-12, at 21:34, Wolf McNally <wolf@wolfmcnally.com> wrote:
> 
> semantically `null` expresses the absence of a value

This is the “big assumption” that I’m not convinced of.

This can get way more complicated, even with 0xf7 “undefined” being around as well.

Exhibit 1:

https://github.com/svaarala/cbor-specs/blob/master/cbor-absent-tag.rst

But, yes, in CBOR we can always invent more values to express various forms of not-being-there, being-mostly-absent, keeping-a-position-occupied-but-not-taken, …
(Harder to do in JSON.)  We even have NaN :-)

Grüße, Carsten