220 35313 <36088315.sQolzGogoc@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Other boolean type
Date: Fri, 10 Nov 2017 00:16:38 -0800
Lines: 22
Approved: news@gmane.org
Message-ID: <36088315.sQolzGogoc@tjmaciei-mobl1>
References: <3ab3afca-0676-4c57-9d76-a0c934f3d2bd@isocpp.org> <1accb83a-0bb7-4577-8347-c1e9b7602521@isocpp.org> <CAGg_6+MHY_wSU27ARxNqy0p5K3x=cZORCpgBOMzQQJRbcOcb-A@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1510301799 25775 195.159.176.226 (10 Nov 2017 08:16:39 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 10 Nov 2017 08:16:39 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRB2GASXIAKGQEDAEE6OI@isocpp.org Fri Nov 10 09:16:34 2017
Return-path: <std-proposals+bncBCB4TK757YBRB2GASXIAKGQEDAEE6OI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f72.google.com ([74.125.82.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRB2GASXIAKGQEDAEE6OI@isocpp.org>)
	id 1eD4UL-0006VN-U9
	for gclcip-std-proposals@m.gmane.org; Fri, 10 Nov 2017 09:16:33 +0100
Original-Received: by mail-wm0-f72.google.com with SMTP id e8sf247665wmc.2
        for <gclcip-std-proposals@m.gmane.org>; Fri, 10 Nov 2017 00:16:41 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1510301801; cv=pass;
        d=google.com; s=arc-20160816;
        b=TmijqdMVArT2qyR/kX5G0JO7tmI8nkocC2BO9eSlPAbWneawUho0cJ1gWaVOD1Y4IE
         nDhLNDRcxgvXpYk57n2isQJ3EfUXLhK2XQ1ZNMkuiORcdiVQwI3R6PWLNZQsTeQfccPa
         W5GVVOmIWd/83aFeabXvBHk/OfBLi5bwVhdpoclw2oy5Ta+j/l06js75J4VBVt9+jrxL
         RxhDVV9kPCHfNDFTO7xBkjLRrDptkiATRaH00Olav3/9pcO8YiBF82UTi3O3YPhGZhkr
         RT7Ry4c8gKrGXo3aXb7EU1mJsf8Xx+mE0pa95M5h1z3Iqd59R0OHpJrl/cMmT6oBgc1d
         qiKQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:mime-version:references
         :in-reply-to:message-id:date:subject:to:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=p055wZkfdFZ4HU1d557cnNoDMGalI0q6+PIMAzFOBjI=;
        b=ReMlOrDM3vw04MhoSdVUmQxDVKGf8C6+PnK9bQYzbSL34hr01zxFMMqER3JQEEgLZY
         y/+oJ/w09ROFUGEvGl6vCPJgnpB1XnKVd+AHnajP6QbHI6o6PdGCpoR5WlhSnAT9S6l4
         3+Ytj6dt0gjh0C/IvcCwo9ih+hyDaWVUoxxNw7Xb8gtY9ijJFrSPRpDSRk16QpRmyl7t
         zLaotnl5LgAsx+zcFdikfC/kT5rc7QE2kc5Plst2VFAn6QrMpG9RA15t935qY1le4oM6
         TeErbDAiJJwhJnEma4ppMORZRxUx7XRFxgZJfbrj2RZH/aZdAIrquzXcF5NTF6cfdhYP
         P7pQ==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) smtp.mailfrom=thiago@macieira.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:in-reply-to:references:mime-version
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=p055wZkfdFZ4HU1d557cnNoDMGalI0q6+PIMAzFOBjI=;
        b=b5Ku7e/Y6xJSGg29M7aCeP3fNPv4L5LyAtb2LPUvP+8ME6PZLkNnXQh7eJc9qfISoj
         nlVMUjkX6b4+2nFEYlDRibXhit3TSpdTSEMf7gbyliMP/rFbEidNkFteMiP0whn9OnOv
         zOM+pqG80b7sQcNgOk8bMcKtY+dKpYoSs6GtmzVi8mJy7cZPYpyzJtMYbaCQYhL7V8LK
         +53VNj9jXoOAGYGxsi7ETXY/RE8KSF1kTj2IW+Z8ZsCAO9QAlE94WdKIGoxaCGHXC/Fp
         fIzneLHi0QUwJf59FNOekgIXcoerpOD+98zBpwY0BZETpHsKXgLpfp9S1ih4si2Mn1iO
         3wiA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=p055wZkfdFZ4HU1d557cnNoDMGalI0q6+PIMAzFOBjI=;
        b=RjD+6FKrTwPp6Iq2BMs+QE2bQMgRtKn3ZT8FM++DkOQewIKGUmcO3JEIerJNEEAnUf
         CMrrv/CxuajcZHP9m5dSVPwaBsGrM8aA0SPPruMhTXbDpTlqeWfM1hNUGYaWDLctUcX6
         OeXfH8KZ6lWCJO6aMhbrlrGLFRvFQnqf97nko/JVFrFS0gnaVLBAmTiKcbDka0swUyJq
         Wtk1OJBQYzArCvPJhJhQFwvieHagJ0xbCQ/4VV2bsmjOHfIjQzpf3W5zVfRTXFOF5Ia+
         1tzmmgpEJodV058HwOdAJ1P2/SZTnqPpTsD1rmsZD9Fdo7uC9S5SafA6oxXjtCTckxxi
         fUcw==
X-Gm-Message-State: AJaThX6iTo+CrIthb10JxfdsOaNIO1yX1MnzT92yODVLpAdJKH3wUPdQ
	q2kMVJ4zN3Z9Z+b3TP1H2fpEtg==
X-Google-Smtp-Source: ABhQp+Rs02ffNcGb0HIxL9cAje/Bcp+6Tx5lbwccdpfD/QUtKO//HWwZQOS0BabTMDcybsOAEZUB5w==
X-Received: by 10.223.134.37 with SMTP id 34mr750476wrv.1.1510301801556;
        Fri, 10 Nov 2017 00:16:41 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.223.198.16 with SMTP id n16ls2975409wrg.2.gmail; Fri, 10 Nov
 2017 00:16:40 -0800 (PST)
X-Received: by 10.28.154.204 with SMTP id c195mr456344wme.80.1510301800301;
        Fri, 10 Nov 2017 00:16:40 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1510301800; cv=none;
        d=google.com; s=arc-20160816;
        b=uxVyH7KHsBwJvtjsdP4FDToenMUdje03FruyY5qFMV8DusRuuMboC3iOEXe3RZ1XXc
         0ECHyPMamVizGv74lZ4oG0TM8KTUImdGE8/zVA3ezefg8WczwPN5oJSTgv0hIUww4xxc
         bd4qOIt6alg+y9bK2Pe3SjdOB60yWE69yuLnLgiMBjORImqUyA+AIUjw7uMgJ3FIc5rE
         HfsQWItoqlZUePspA+9vTD1b+GWoGOaq79ZiEvMj3VRCYV0qRPPUizTa3rhXWN8rLebL
         7d1SPy3L9OZYQn9lD9wqJqQE01sh6e6nGDvstwIR+xLC2MF0xJcECJy/XezPYzH7hdQZ
         jWJA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:to:from:arc-authentication-results;
        bh=8O1CsOSVPTuYsKk6bIcY6CIeWXq+sgtmr1vWg0wwSjM=;
        b=zy8iZc3uMDnvWzaEW68oiq/c7Kj2Ei5AcFnpINSv3S9lUFHomKDNbL3S3eV9zHBDyN
         aE8HO7JQEVDDvJB/WMG1s1YjKFIX0Uarb9vJmXJUKU50iCT3ausCHy645CpXzxHuC4kw
         52VuPMfiu0nm7VnGM5bdAvVtK9rEopiF59MMfFSnAuwlla855jMpZFWW2P/URJdxa/m7
         AC3AI/0B8ynVnvqgG7Tt4pOHGKmDxiUMEMcAtZZ+1cabPNiTKpxn4Kn5+IgoA4IO7+h8
         89YUc//Gnz+VWqSTan9na3be5El9Iz324vhfBve9LnbE5jC1n/sBamzVgsCBwip+LzUQ
         QVHg==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id p42si8222724wrb.504.2017.11.10.00.16.40
        for <std-proposals@isocpp.org>;
        Fri, 10 Nov 2017 00:16:40 -0800 (PST)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl1.localnet (unknown [IPv6:2601:1c0:4501:5f9f:ec99:8f27:8bc6:6510])
	by gondolin.macieira.info (Postfix) with ESMTPSA id EA70011B7BE
	for <std-proposals@isocpp.org>; Fri, 10 Nov 2017 00:16:39 -0800 (PST)
In-Reply-To: <CAGg_6+MHY_wSU27ARxNqy0p5K3x=cZORCpgBOMzQQJRbcOcb-A@mail.gmail.com>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mailfrom=thiago@macieira.org
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:35313
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/35313>

On Thursday, 9 November 2017 23:47:06 PST Nevin Liber wrote:
> On Thu, Nov 9, 2017 at 10:29 PM, Vishal Oza <vickoza@gmail.com> wrote:
> > I think four states might be better: true, false, maybe, and undefined.
> > Also a fuzzy bool might be useful as well. The syntax would be different
> > from classic true and false because you are checking the amount of
> > truthiness rather then just true and false.
> 
> I'm thinking 256 states.  Let's go hog wild and call it uint8_t!

RFC 3514 introduced both a 1-bit boolean flag to IPv4 and a 128-bit strength 
indicator for IPv6. I think we shouldn't do any worse.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/36088315.sQolzGogoc%40tjmaciei-mobl1.

.
