From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24014 invoked from network); 10 Mar 2023 17:47:45 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 10 Mar 2023 17:47:45 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 776E741226; Sat, 11 Mar 2023 03:47:44 +1000 (AEST) Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by minnie.tuhs.org (Postfix) with ESMTPS id E292F40A7F for ; Sat, 11 Mar 2023 03:47:40 +1000 (AEST) Received: by mail-pg1-x535.google.com with SMTP id q189so3503789pga.9 for ; Fri, 10 Mar 2023 09:47:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20210112.gappssmtp.com; s=20210112; t=1678470460; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=5mwCeOyEpTgLkKNLH1ItysZjxyU5CyohnilGEQcMPxA=; b=U84rSCU7a6CNQoakZTH+9iA4Lj/6Y/OFPCRgjX1i/5IV+4HVLvv4d+Ag7cMUXFCRRJ Y/vFvIx2pSxLv/bs/jVg9cxsQ8+022+N9mNw63/Cs+guFw9Yt+lYQWZh40uynImqAfCJ +MfsDAH/Jp1vLsj1M/8d0ltgDysQyTveF44zIORRXRESeA3OOYXq2+VCtXgZKZZkkUJp oa+IQNlnr4mxNHlLSNjOgnL55nsVqUueyQZiBZgDBf/HC9AYwjL30aMTQ8hyIH4/Bzbm 0fg/aVuYofTU6BgKmoFNStKA3oe88ySMZsNA1tDDm/5dI47YhjF6YxufPZAhTIMxcfkN VFnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678470460; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5mwCeOyEpTgLkKNLH1ItysZjxyU5CyohnilGEQcMPxA=; b=JvWLWJr6XHSKdkcf6TP8Jis8TdvC35LH5XhMwlSxw6oybeZyMbtj5hKNU0XsDxudpv d63ewcQ8Fn0RRWn5w1ZS0Px7e44ybJMwidTp45t3awrFqNvKAOD3trkj/wf6C5SfeyK9 VW0PPgPua7GxAeFHa7qCrS+IIo405i8XLC+pW0dGXk+k4F25vNlbLeoS6dMaA0OfGQbn euVGRhwKRH6oWZ/CQyllYStXYMd5QD3Gko/2o6z6KQWvn8DYGJ9ef/Ts3KlhqejY2y70 6gTTF0CWG1TQhdtkyCBUS7mecq360kaa+6KqmLcMGWrum11Ex159+FepacmnjNuBY0B4 ukLg== X-Gm-Message-State: AO0yUKU//+DjtB1zVikSg1LKvhRL3GW82B0He6wrVPVPEfW9BVpBCtdy Kkt+s09FxdNDcE8L2iN65bTPpQ== X-Google-Smtp-Source: AK7set/klNpx5gLKmopRtYD3o0RqZcFAjIgU/fUL+QV8mOpQwSiTBMVNfNUhSNuX7b6GzXbausiDvg== X-Received: by 2002:a62:1758:0:b0:5dd:3f84:7d7d with SMTP id 85-20020a621758000000b005dd3f847d7dmr21824887pfx.15.1678470460297; Fri, 10 Mar 2023 09:47:40 -0800 (PST) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id q26-20020a62ae1a000000b005d663989ccfsm80723pff.200.2023.03.10.09.47.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Mar 2023 09:47:40 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Bakul Shah Mime-Version: 1.0 (1.0) Date: Fri, 10 Mar 2023 09:47:29 -0800 Message-Id: <1DCF3FAD-ADAA-4FEC-8A76-739DF67A4859@iitbombay.org> References: In-Reply-To: To: segaloco X-Mailer: iPad Mail (20D67) Message-ID-Hash: WOXFPKWGXHZFHCVDXFYBFSSV6QLVGLKP X-Message-ID-Hash: WOXFPKWGXHZFHCVDXFYBFSSV6QLVGLKP X-MailFrom: bakul@iitbombay.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: coff@tuhs.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [COFF] Re: [TUHS] Re: Conditions, AKA exceptions. (Was: I can't drive 55: "GOTO considered harmful" 55th anniversary) List-Id: Computer Old Farts Forum Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: I should add that (compared to goto or setjmp/longjmp), by making exceptions= a language thing, the compiler can attach more context to the exception eve= nt (or condition). In the scheme I outlined, the vendor library function mus= t declare what exceptions it doesn=E2=80=99t handle and the compiler can pas= s more context that may not make sense to a library user but may help its de= veloper pinpoint the cause. > On Mar 10, 2023, at 9:28 AM, segaloco wrote: >=20 > If nothing else, I could provide much better stack traces to vendors when I= 'm particularly stuck on something and convinced it isn't my fault. Maybe su= ch a thing exists in C# but I've never gone looking for it, all I know is ca= tching an exception from some vendor library with zero useful information ma= kes me want to take a hammer to much more than the code...