From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Code flow control
Date: Fri, 15 Oct 2021 19:53:06 +0200 [thread overview]
Message-ID: <skcf63$ujt$1@dont-email.me> (raw)
In-Reply-To: <c2f132ab-dca4-4400-a913-12616c0d8489n@googlegroups.com>
On 10/15/21 5:08 PM, Kevin Chadwick wrote:
>
> I'm sure I could quickly write a shell script easily enough for a specific design as in if keyword appears once but not again within x lines then shout at me but I am wondering if I am missing a tool or better practice before I do so?
What you're talking about is result codes. Exceptions exist because of problems
people encountered with result codes. Using result codes when you have
exceptions is like using conditional go-tos when you have if statements.
So, yes, there is better practice. It's called exceptions.
--
Jeff Carter
"I'll get broads up here like you wouldn't believe.
Swingers. Freaks. Nymphomaniacs. Dental hygienists."
Play It Again, Sam
125
next prev parent reply other threads:[~2021-10-15 17:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-15 15:08 Code flow control Kevin Chadwick
2021-10-15 17:48 ` J-P. Rosen
2021-10-15 18:03 ` Dmitry A. Kazakov
2021-10-15 19:19 ` Kevin Chadwick
2021-10-15 20:02 ` G.B.
2021-10-15 21:30 ` Kevin Chadwick
2021-10-15 22:51 ` Randy Brukardt
2021-10-16 7:50 ` Dmitry A. Kazakov
2021-10-16 13:26 ` Kevin Chadwick
2021-11-26 13:44 ` Kevin Chadwick
2021-10-15 17:53 ` Jeffrey R. Carter [this message]
2021-10-15 23:30 ` Roger Mc
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox