220 40384 <CAHSYqdah32J75_QvLYRGGr1qt6LBDOGnRGOqzBG9rEuhNC0K=Q@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Hyman Rosen <hyman.rosen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: =?UTF-8?Q?Re=3A_=5Bstd=2Dproposals=5D_Enforce_explicit_casting_on_assi?=
	=?UTF-8?Q?gnment_and_return_type_=E2=80=98bool=E2=80=99?=
Date: Mon, 8 Oct 2018 13:59:04 -0400
Lines: 65
Approved: news@gmane.org
Message-ID: <CAHSYqdah32J75_QvLYRGGr1qt6LBDOGnRGOqzBG9rEuhNC0K=Q@mail.gmail.com>
References: <5df28d28-a2f4-47cd-9da7-49c91ed6d6f4@isocpp.org>
 <2016044.EC7RGCoeXV@tjmaciei-mobl1> <8f3f409b-43ff-4834-a383-2a5b0c5dc66e@isocpp.org>
 <1700149.ojBUBa6pdX@tjmaciei-mobl1> <32c0cd10-426c-41b5-b80d-6ef300877950@isocpp.org>
 <aafc44ae-9ca6-4ce2-9247-a992b4256a42@isocpp.org> <CAJEeERWQ5Tvj+0RBsMenanU7VngUMgQ5_ehF=MLVrj+TR1JiQg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="00000000000021c1150577bb61bf"
X-Trace: blaine.gmane.org 1539021431 11976 195.159.176.226 (8 Oct 2018 17:57:11 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 8 Oct 2018 17:57:11 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDKJJPVBQMKRB5FV53OQKGQEQ4NO6SQ@isocpp.org Mon Oct 08 19:57:07 2018
Return-path: <std-proposals+bncBDKJJPVBQMKRB5FV53OQKGQEQ4NO6SQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wr1-f71.google.com ([209.85.221.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDKJJPVBQMKRB5FV53OQKGQEQ4NO6SQ@isocpp.org>)
	id 1g9ZmF-00030T-3e
	for gclcip-std-proposals@m.gmane.org; Mon, 08 Oct 2018 19:57:07 +0200
Original-Received: by mail-wr1-f71.google.com with SMTP id w17-v6sf3229051wrt.0
        for <gclcip-std-proposals@m.gmane.org>; Mon, 08 Oct 2018 10:59:18 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1539021558; cv=pass;
        d=google.com; s=arc-20160816;
        b=0q8vui31ADJfM8Y857L0uMmTwisSUotpd3jdI+olRdBsRUbYqTiVI7fTj5PQSkmv+L
         AUXFwPEpOrr6VaPul1Cob/pPCaOjZ0xIRBV7qRoF+22rxgqsIuHVi7QM8IWbiYEM2zsB
         YA6E6uawWQL+Xmiw/9YBrAYMVqXlyLLhLk3D2hg1cj8+IgTnoTkXacKDlxAYc1e/hC1s
         TtaWuBW/lGSHhyP/hkAXA/XIU907HVpqxxTiqssRk5zjGPtUKM+hPoncUVahtK3KgPrI
         9XOc9+afIrSDMbL1FSWiWoas6OqeHHafwuy1UaxfCzOXLhJYUFCYGI+jlt8s3Fmn0DKp
         BewQ==
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:to:subject:message-id:date
         :from:in-reply-to:references:mime-version:dkim-signature;
        bh=dCHWRZlEFyplqRaxXx5GnYuAasmsYlj4PRC4t1Qe6ls=;
        b=efLOvLYEtsijNN3ocLObnKmd0Ork8O1M2AH+RQ6C4dVUWUGv4WPkQeM6dGgLxzPpzE
         V0fls1h6DLnEZQfaPpsknSp7z29W+WrU3NsrVCd+45xHg2FK9tDaeZGh9cHUqU3SKW98
         fXQ9yZJuxeUgkyObrWua9fmQz6FDk3bgO6zfBrRLOCk4L9L7zsk1XviQukq6RF5Z/an+
         2HwV56ugozcfedObL9V2Dzjnaxx4fLR9NpXqCHj4/J9qIBpsyguZaXZODu7h3NLPdDQ8
         9+kpQvGDOouQw9/XsMTOAiJOIJQB290jjSHjS+iJfN1815C2NGM0/fMjuicxwHEAo/U3
         isSg==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b="R/I1duMy";
       spf=pass (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=hyman.rosen@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:references:in-reply-to:from:date:message-id:subject:to
         :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=dCHWRZlEFyplqRaxXx5GnYuAasmsYlj4PRC4t1Qe6ls=;
        b=0Vrekvx5yTrmt660Dw+a7yfI/MI8AJdHU4gkSL2WBHpAHsGDE65Hch34yqx0W/3gw3
         WHJ5iFt5Zu6wu4sGS9K5sjt8I/jSAchBS8xAAPg7AHF/zCqCAuFx83oXPHzWipmygj3+
         6dWK+6UGMrYZzXpjBrQzZYColekrfGudfMnWXorraXbPsP44/iuJGQ3zfAxTqN3Uj4z4
         YI4P3ph9Gcualpmu15thEjKMoen2Ou/ytkJ8AFRUrrwJWoBD5Pxh+fcGVGB5C8ka/Nt8
         SwpzX9RZoOATlcdOzOxzRgBFVP2UkX03CILaAvIk8eRbfXwS7DCRFV4r1NA8sYX+7/lx
         /FVw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject:to: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=dCHWRZlEFyplqRaxXx5GnYuAasmsYlj4PRC4t1Qe6ls=;
        b=RKcM/NuMbrTZMylBKDktSOjcxry4zHvGnaBu9eAmsV/CYBXKgkRXk4W3+jSRx1YMz4
         y5sAKriFZGZlGqLFJN73bsmm/r4GR1V7HUpN9/SStgBHbGPw1UC+uFvyu/1fPrdExIvX
         vLf3Z6G43fGr1CtqpKCD/rBm9vEXkzbZa7YOMSXqfQyv1bJliPx5M+6DOhx6lLthGbCV
         hh51zKoQn92NxXvpb1U+Uva+o1w+1oOUeYTm7XUyDbXRU9Ga3lEdr9UrxwwnesZ3DMPu
         /KWUmj7z22gx/RImi4ukE0C09zAgnb6AhZHnvrXgTa/R4V/bMHVCT7Bxtiedbqw+/10c
         RPuQ==
X-Gm-Message-State: ABuFfohoM4WIXjIYyTVkBcRdcV8cNwtbGbqnnXv7aEPTDK5GlFjIpaae
	/+L2ijQF7wHv4NRUj22jVaPnog==
X-Google-Smtp-Source: ACcGV63gmEEITm+iRcDZTXN8cRxAKwZD9ejVk41WrZ0waugMfVIjwVpomkWfG6VA3Ubg1A8t5FMc1A==
X-Received: by 2002:a1c:da95:: with SMTP id r143-v6mr2329177wmg.6.1539021557970;
        Mon, 08 Oct 2018 10:59:17 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:adf:9d1a:: with SMTP id k26-v6ls295028wre.10.gmail; Mon, 08
 Oct 2018 10:59:16 -0700 (PDT)
X-Received: by 2002:adf:ba87:: with SMTP id p7-v6mr16185363wrg.203.1539021556417;
        Mon, 08 Oct 2018 10:59:16 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1539021556; cv=none;
        d=google.com; s=arc-20160816;
        b=d31IkA+A4uH47h+rxOefrvdOiui/T3VHT3rLb/4vefy/cqm6zP+qk5BDoG/RiMM06V
         TG4BZy+kh1XOhrQxqJycVBY703EM1YX6u+e25l8skUFYPjKIR9BLgqVEpImwvKim5PrQ
         ckAUh9yd/GUac/QPE1ALdeyRatLZDCpbINIMmOEOdHAKnEXn6l9ZdTuMLcfuidSTJK3z
         dXwQHvzZgzFb49/QuHo3przOiOD+uOqBuR5rexqPrmi+HpMjRA5UyZ7dtrBkb2PHP9LG
         jweMlJ6mMBRdBgBN+BlewRRSbkX5K7xIuyVjL0+aCQUHqihAD26LBcscQyjhHGdktZus
         CHOQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:in-reply-to:references:mime-version
         :dkim-signature;
        bh=yJybuNnTBciAKGDgiZCL03Q+yIRXYOyJ6aBVSUokwtM=;
        b=LiEw4BBVX7zlYHCtN3YycVPZ5ayczw3uSbBIsz+eHVJlBUviHUnMQeJCDF8me/SStI
         a+T07At8+ZCMgdoI/Jmc4XS0ScBs109jw185bBS7wBoLCk1mfy8xjzTq3ALmyr/6dnPd
         hcQszNPSFWZCdMM1sYVpEU2Ds7U+sYWAJEODAIhNwBcgGONY+lWawPbv6oCW6FPMPyEu
         PVwpcoBxxSyLh1IgyOLNcTjpe9zNgDX0mkg7FZF4QdAxjp5o+2/ND2Cc02Aw984sIYWi
         kd8g1q5aOlcGmOM6NpMx+MewGfcwT7V4gWVWCN7rljtNpQGRr4RTsr9K5uVTtZCis0+k
         E90Q==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b="R/I1duMy";
       spf=pass (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=hyman.rosen@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id j137-v6sor6508563wmd.27.2018.10.08.10.59.16
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Mon, 08 Oct 2018 10:59:16 -0700 (PDT)
Received-SPF: pass (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a1c:c90f:: with SMTP id f15-v6mr4145517wmb.48.1539021555743;
 Mon, 08 Oct 2018 10:59:15 -0700 (PDT)
In-Reply-To: <CAJEeERWQ5Tvj+0RBsMenanU7VngUMgQ5_ehF=MLVrj+TR1JiQg@mail.gmail.com>
X-Original-Sender: hyman.rosen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b="R/I1duMy";       spf=pass
 (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=hyman.rosen@gmail.com;       dmarc=pass
 (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: 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:40384
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40384>

--00000000000021c1150577bb61bf
Content-Type: text/plain; charset="UTF-8"

On Mon, Oct 8, 2018 at 1:40 PM Andrew Sandoval <sandoval@netwaysglobal.com>
wrote:

> I can argue that the current automatic / implicit conversion violates type
> safety.
>

Automatic type conversion is everywhere in C and C++.
That ship sailed decades ago.

  The only argument so far that I've seen for implicit conversion of bool
> is because there is some existing code that would break if it changed.
>

You have missed the argument that conversion from non-zero to true
and zero to false is nearly always what people want.

-- 
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/CAHSYqdah32J75_QvLYRGGr1qt6LBDOGnRGOqzBG9rEuhNC0K%3DQ%40mail.gmail.com.

--00000000000021c1150577bb61bf
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr">On Mon, Oct 8,=
 2018 at 1:40 PM Andrew Sandoval &lt;<a href=3D"mailto:sandoval@netwaysglob=
al.com">sandoval@netwaysglobal.com</a>&gt; wrote:</div><blockquote class=3D=
"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding=
-left:1ex"><div dir=3D"ltr"><div class=3D"m_6821213430516039212gmail_signat=
ure" data-smartmail=3D"gmail_signature">I can argue that the current automa=
tic / implicit conversion violates type safety.</div></div></blockquote><di=
v><br>Automatic type conversion is everywhere in C and C++.<br>That ship sa=
iled decades ago.<br><br></div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"l=
tr"><div class=3D"m_6821213430516039212gmail_signature" data-smartmail=3D"g=
mail_signature">=C2=A0 The only argument so far that I&#39;ve seen for impl=
icit conversion of bool is because there is some existing code that would b=
reak if it changed.</div></div></blockquote><div><br>You have missed the ar=
gument that conversion from non-zero to true<br>and zero to false is nearly=
 always what people want.</div></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAHSYqdah32J75_QvLYRGGr1qt6LBDOGnRGOq=
zBG9rEuhNC0K%3DQ%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAHSYqdah32J75_=
QvLYRGGr1qt6LBDOGnRGOqzBG9rEuhNC0K%3DQ%40mail.gmail.com</a>.<br />

--00000000000021c1150577bb61bf--

.
