Deutsch   English   Français   Italiano  
<20250406105216.00004c94@yahoo.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Michael S <already5chosen@yahoo.com>
Newsgroups: comp.lang.c
Subject: Re: do { quit; } else { }
Date: Sun, 6 Apr 2025 10:52:16 +0300
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <20250406105216.00004c94@yahoo.com>
References: <vspbjh$8dvd$1@dont-email.me>
	<20250404132935.60@kylheku.com>
	<uubIP.1259193$2zn8.216354@fx15.iad>
	<vsrjnn$2l5n3$1@dont-email.me>
	<0CcIP.1537951$OrR5.1235899@fx18.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 06 Apr 2025 09:52:16 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="58f7fc265c99eb47e3d5fcc28f6142ae";
	logging-data="508579"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18usq3EVecYWRw4Q5+4sKeV4HtV4ELfaWc="
Cancel-Lock: sha1:tnNyT4CjpAydAmoFjZEsEN1Kn8Q=
X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
Bytes: 2755

On Sat, 05 Apr 2025 16:10:36 GMT
scott@slp53.sl.home (Scott Lurndal) wrote:

> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
> >On 05.04.2025 16:54, Scott Lurndal wrote:  
> >> Kaz Kylheku <643-408-1753@kylheku.com> writes:  
> >>> On 2025-04-04, Thiago Adams <thiago.adams@gmail.com> wrote:  
> >>>>    What do you think of this control block?
> >>>> [...]  
> >> 
> >> I don't believe C++ exceptions are useful in this case, either,
> >> and I avoid using them for general purpose error handling.  
> >
> >I'd have wished that they were available back then when we
> >started using C++ regularly in the early 1990's.  
> 
> I was using C++ (cfront 2.1) for operating system code in 1990.
> 
> We couldn't have used exceptions even when they were introduced
> in cfront 3 for that project.
> 
> I strongly believe errors must be handled immediately when
> detected, rather than deferring to some nebulous code a long
> way in both space and time from the actual error.
> 
> The only use I see for C++ exceptions is a cleaner
> sigsetjmp/siglongjmp, and even then I've used
> the later when the former is available. As an
> experiment, I once replaced the sigsetjmp/siglongjmp
> calls with C++ exceptions and found that using exceptions
> reduced application performance by a double-digit percentage
> for that particular applications (processor simulator).

If you believe in non-trivial constructors (i.e. constructors that can
fail) then you have to believe in exceptions as well.
Personally, I don't believe in either.
But then, I don't believe that C++ is suitable for for operating system
code...