220 39331 <pj6q6g$ep3$1@blaine.gmane.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: David Brown <david@westcontrol.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Alternative proposal for mapping P0709
 Deterministic Exceptions into C
Date: Tue, 24 Jul 2018 11:08:35 +0200
Lines: 35
Approved: news@gmane.org
Message-ID: <pj6q6g$ep3$1@blaine.gmane.org>
References: <6a65c934-5d2a-4e75-b88d-9eaaee338bd3@isocpp.org> <1c229827-6d5d-45bd-8766-c3af818b2b0b@isocpp.org> <5e1086ff-802e-4e45-bd6c-077a93287b08@isocpp.org> <CAANG=kWaY76_oC2xPbkj68sa0hMP0eKc7CDRbJt20oLJTbHu3g@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"
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1532423198 16020 195.159.176.226 (24 Jul 2018 09:06:38 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 24 Jul 2018 09:06:38 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDP6R2XHXIARBHGZ3PNAKGQEZZDN4LI@isocpp.org Tue Jul 24 11:06:34 2018
Return-path: <std-proposals+bncBDP6R2XHXIARBHGZ3PNAKGQEZZDN4LI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lj1-f197.google.com ([209.85.208.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDP6R2XHXIARBHGZ3PNAKGQEZZDN4LI@isocpp.org>)
	id 1fhtH8-00045v-0S
	for gclcip-std-proposals@m.gmane.org; Tue, 24 Jul 2018 11:06:34 +0200
Original-Received: by mail-lj1-f197.google.com with SMTP id w7-v6sf841800ljh.15
        for <gclcip-std-proposals@m.gmane.org>; Tue, 24 Jul 2018 02:08:45 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1532423325; cv=pass;
        d=google.com; s=arc-20160816;
        b=G8HN7RQfYhd31h7hCnoCfH2FUFXDnxZhG1P4z1rB4nhKbQfu+E67HjlBOdud4KBNhn
         3HZVALYy8jbThVDr77WUbkXKsb5FROGqet8e7nPQtiG2YUublKSEpctD21ktf+89/nAu
         eYboGTT9LClBBxX3FxYAPnBwE1w7v4m3rTJqXYGDlW73k/QFAOdtrl9XU6wByDWZJTmA
         w/vYuSPBcHZw001AtR3nBttdkmrVWOkBbjZP0VcYpEN/HnSAd+wqwZkDKdrldDORfSh3
         SpkWjU7eU6goukY8UpvKSBrsDo/GdjwYIuN+66zogGRjERyyt25u/bcDrUDEh8e/4Txo
         Nv3w==
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:in-reply-to:user-agent
         :content-transfer-encoding:mime-version:references:message-id:lines
         :date:subject:from:to:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=+k+vc/MEwslZazuX1QQ4HN2xEmkDj0GCl99ngwVmJSY=;
        b=EUuy5iJzh+mNA5PbLy4CaFvJn8DPzi0QLKF8Xo3K+voOXbdNooKRBvuKxBsM8oMK3A
         tpUceygI5HUYeBwH9dwi27tz73zk9r+tw+/7rQeGGx0wfxmBAWccv3Qqmt/3WI4K3usJ
         vJViQFcswjKXB6WEFI063S9lsslPghr1N6QaKpM9UVMWI2LKJWrwy9tYhkv3SSSF9hcI
         b5e7yc6A06ViSoC/okWk7PArnRo3Zz0NRx6+QJXwA1Qet43NUfO7YwuEw5WzWR0YtzzM
         raQv6My+6pf5OCrhSgYjQg8lKnYf9yD7bTUHCSMZNZ3/8siVZAm7JKkIrK2Jpgx8xfr6
     
ARC-Authentication-Results: i=2; mx.google.com;
       spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=to:from:subject:date:lines:message-id:references:mime-version
         :content-transfer-encoding:user-agent:in-reply-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=+k+vc/MEwslZazuX1QQ4HN2xEmkDj0GCl99ngwVmJSY=;
        b=ZbSioaFomNbajbhoCEMoUu8N7bVasnql8kusnORX2fDMyG1HJcQS0LSU0SCy9EjIQF
         FnfvblFj4MBNvfdPqGjL2cteUb0G18a3Liq5RK0IqlByzBhhUl/Tu+32QLPqFa5pCQQ2
         MbnJTOSr1CX6hlbj3viqE0nTBut1e8boHn8LSE7uvS7jQyeOT/t0XoVWPzqQ6CNNfMg0
         fmmDZBTo45koTEt11MVcOmOGmrqfQx0lOC1xHcYL0rEWzcQMC69lFXxzRIxPS10OY3Gq
         7XayFmlyglR69Y5gJjLi+mWk35hm+KXjjfRU2fEoqhJkn8YS/KjaOcQMThhJ+8nUjRKN
         eeTw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:content-transfer-encoding:user-agent:in-reply-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=+k+vc/MEwslZazuX1QQ4HN2xEmkDj0GCl99ngwVmJSY=;
        b=ZTrU/teReQe4cTQ7IzijmxDK+4d43MBwBdox6QO8WvKQLXeV2fznZ2INuF56bzjoo/
         khTUFt7Ouko347pLZrcTPwe6sgM5cT7Y2u9+AM6Ndt8tLJG/F3ip1LyuTV3MOX1l+iFk
         mG0+/WUgCw6/QR/tYCgWNQlAllJgdCh6rzTax7CyHprCukIHMk6OYwsG2KI91q85518c
         eqRKfyCBzKHePlUQkXbhUIyy3Q0O8bGuOXCyoxgJVZSeWyFgWdo1a0MnRPCJvGK1dphb
         jVLU3PuMD+gXN4jpq2MiBa43jj5dFEB5WAZ23ZxJl2LsTreI4ZPlSwo2Qng9oXSL 
X-Gm-Message-State: AOUpUlEW1mTYl6cXborStnVD83Rbe8450S3wAC5frQHHrONRIYRh2NOT
	9E5Nd2YR+HnfurvpFqgnfTc=
X-Google-Smtp-Source: AAOMgpcC3/PFLdPk++ZAZUstBCYuxc08WqpLbOau0m4XXMlDUcjqi6YxZ0Wq6l301ultNrBNECMHOQ==
X-Received: by 2002:a2e:7a17:: with SMTP id v23-v6mr872124ljc.18.1532423325269;
        Tue, 24 Jul 2018 02:08:45 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a19:1a15:: with SMTP id a21-v6ls414771lfa.29.gmail; Tue, 24
 Jul 2018 02:08:43 -0700 (PDT)
X-Received: by 2002:a19:e803:: with SMTP id f3-v6mr10035948lfh.84.1532423323505;
        Tue, 24 Jul 2018 02:08:43 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1532423323; cv=none;
        d=google.com; s=arc-20160816;
        b=Yc0wQRdr847eFs0qbd1L/3TEzt+rghEwAIMQh1Ni482Wsg6KpawR6i4zyW3fRrd70N
         b54HscmzssmXjFVjco378zeFhjam1+GfoML4VdK58u9ORFf7ckJ7ZL5p5zMfwOlL6Y2S
         msszPekdXl9U8Kz7XWPdvYipAa8ojOazS2FkTGbahneGCE07CHFSyc863JFI2xya2mTi
         lSC8X0bVDqJn9Q1m5SRd5fqd+xwjvQKxbJhFitDwYQaevi4stEuy72le/vHAqrUIi/CW
         K3N1VSYs3yAFfyJ9DKUXzcSwQqp4qSUBoAm9s41PpRoPjBQtMkcY13BD9iUpwCObyuJ+
         xb0g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=in-reply-to:user-agent:content-transfer-encoding:mime-version
         :references:message-id:lines:date:subject:from:to
         :arc-authentication-results;
        bh=7CEaMvl2K7tlumo3UvRGWX9Bys4qlyFS95NsurwOdx8=;
        b=qu2fnuDWtwRcM9AKorQEeqxVz7rBsPsMvGLKBJ5ht5ktdXYfb1W/0gk5nDQa+u0Zia
         D2DEyUvlaO3WC8WlK/urDAW03Fxs7GvX8vMXweUQmN++PlmenOx+j03m1vCb+07kAisR
         lSdaKOOSEPtuLi8T4iUF49RoGUF1JkxrXBYsxPlE+1l4bPXb0+cqCmCnH/Lr3yf/E+Oc
         3JgLeOaoyejCnzLPeQqcpkE3VK3sGA9xPCJtwCaABlgaWJQT3Po/RfN8IfAu7zV3tO0v
         XvODHY8W+LDi1vOKfywT7dELeWFjF2gqQGTARET+S994Tb+QVdfzE7GHru3w7Bf9oHig
         Yfmw==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org
Original-Received: from blaine.gmane.org ([195.159.176.226])
        by mx.google.com with ESMTPS id a16-v6si5524464ljj.207.2018.07.24.02.08.43
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 24 Jul 2018 02:08:43 -0700 (PDT)
Received-SPF: neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) client-ip=195.159.176.226;
Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1fhtH5-000430-Bp
	for std-proposals@isocpp.org; Tue, 24 Jul 2018 11:06:31 +0200
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 25
Original-X-Complaints-To: usenet@blaine.gmane.org
In-Reply-To: <CAANG=kWaY76_oC2xPbkj68sa0hMP0eKc7CDRbJt20oLJTbHu3g@mail.gmail.com>
X-Original-Sender: david@westcontrol.com
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 195.159.176.226 is neither permitted nor denied by best guess
 record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org
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:39331
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/39331>

On 24/07/18 10:25, Ga=C5=A1per A=C5=BEman wrote:
> If we are to use the function's name, how do we deal with unutterable
> functions, like lambdas, or methods? You can dismiss it as "right, C
> doesn't have those", but they might in the future. I don't think it's a
> good idea at all.
>=20
> I also don't like that if I rename the function, I now have to change
> its body. That makes very little sense to me. A rose by any other name
> *should* smell as sweet.
>=20

Having programmed in Pascal, where you use the function's name as the
return value pseudo-variable, I agree with that - it is a pain.

It may also be a challenge for recursive functions, and it will
certainly be a problem if you want to use the function more than once
before checking for errors:

	x =3D foo(y) + foo(z);
	if (foo.error) ...  // Which foo call?

I appreciate the desire for cheap and standardised error handling, but
this syntax is not going to work.



--=20
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 e=
mail 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/pj6q6g%24ep3%241%40blaine.gmane.org.

.
