comp.lang.ada
 help / color / mirror / Atom feed
From: John McCabe <john@mccabe.org.uk>
Subject: Re: Ada and "early return" - opinion/practice question
Date: Mon, 15 Mar 2021 10:43:21 -0700 (PDT)	[thread overview]
Message-ID: <077ed5ef-61c9-4178-a21c-e0955d5da12fn@googlegroups.com> (raw)
In-Reply-To: <86eegge32o.fsf@stephe-leake.org>

On Monday, 15 March 2021 at 17:31:33 UTC, Stephen Leake wrote:
> John McCabe <jo...@mccabe.org.uk> writes: 
> 
> > I hope this isn't a FAQ (it's hard to find relevant articles) but can 
> > someone guide me on the 'normal' treatment in Ada style of what 
> > appears to be referred to (by C/C++ programmers) as early-return. 

<..snip..>

> I would tend to use an exception for "something bad", but that depends 
> on the overall design. 

Fair enough.

> There are various maintenance issues on both sides; the summary is 
> "editing existing code is a pain" :(.

Isn't is just; especially the C++ stuff when certain folk aren't quite sure about when not to use templates! In recent months, where I've been learning more and more about the ins and outs of "modern c++", I'm becoming more and more inclined to ditch it and use something where the language designers appear to want to address issues in a way that's consistent and relevant to their users' needs, rather than just fannying around to try to prove how clever they are.

> > Hope this is ok to ask!
> Sure; there are times when one style is overwhelmingly better (ie 
> requiring matching end names); this just isn't one of them. 

Thanks. 

As an aside, is there any way to use this group these days where text layout etc is honoured? Oh for the good old days of usenet!

Cheers
John

  reply	other threads:[~2021-03-15 17:43 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-15 16:46 Ada and "early return" - opinion/practice question John McCabe
2021-03-15 17:02 ` Dmitry A. Kazakov
2021-03-15 17:29   ` John McCabe
2021-03-16  7:08   ` Randy Brukardt
2021-03-15 17:31 ` Stephen Leake
2021-03-15 17:43   ` John McCabe [this message]
2021-03-15 18:15     ` Shark8
2021-03-15 20:39       ` Simon Wright
2021-03-15 20:56         ` Chris Townley
2021-03-16  7:19           ` Stéphane Rivière
2021-03-16 10:31             ` Jeffrey R. Carter
2021-03-16  8:28           ` John McCabe
2021-03-16 20:34         ` Simon Wright
2021-03-17  8:05           ` John McCabe
2021-03-17 11:43             ` Simon Wright
2021-03-18  8:08               ` John McCabe
2021-03-18 16:27                 ` Stephen Leake
2021-03-20 13:41                   ` John McCabe
2021-03-15 19:05     ` Paul Rubin
2021-03-16  8:38       ` John McCabe
2021-03-16  9:03     ` Stephen Leake
2021-03-16  9:21       ` John McCabe
2021-03-16  8:24   ` John McCabe
2021-03-16  9:13     ` Stephen Leake
2021-03-16 11:51       ` John McCabe
2021-03-16  9:46     ` Dmitry A. Kazakov
2021-03-16 10:46     ` Jeffrey R. Carter
2021-03-17  8:18       ` John McCabe
2021-03-17 10:06         ` AdaMagica
2021-03-15 18:12 ` Shark8
2021-03-15 18:20   ` John McCabe
2021-03-15 19:08   ` Paul Rubin
2021-03-15 19:37     ` Shark8
2021-03-16  7:17     ` Randy Brukardt
2021-03-16  9:26       ` Paul Rubin
2021-03-16  9:53       ` Dmitry A. Kazakov
2021-03-16  9:16     ` Stephen Leake
2021-03-16 11:04       ` Niklas Holsti
2021-03-16 22:49         ` Stephen Leake
2021-03-15 18:37 ` Jeffrey R. Carter
2021-03-15 18:54   ` John McCabe
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox