comp.lang.ada
 help / color / mirror / Atom feed
From: sk <noname@myob.com>
To: comp.lang.ada@ada.eu.org
Subject: Re: Ada 0x, exception idea ?
Date: Sun, 27 Jul 2003 19:21:03 -0500
Date: 2003-07-27T19:21:03-05:00	[thread overview]
Message-ID: <mailman.9.1059351645.320.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 3F229597.3090909@myob.com

randhol+abuse@pvv.org:
 > Yes, Why? Why is writing source code in one line so important?
...
I find a large nested error checking "if-then-elsif" distracting
from keeping a focus on the overall algorithm

hyrosen@mail.com:
 > Why would you write it that way? If you just want
 > equivalent one liners, what's wrong with
 >
 > if Condition1 then raise Error1; end if;
 > if Condition2 then raise Error2; end if;
 > ...

Hard to explain, but I find a single line "if-then"
statement more difficult to read because I find myself
visually parsing it several times just to make sure
that I am not missing anything squeezed between the
semi-colons.

For a single line, such as the current "exit-loop-when"
statement, I can parse all the information I need in one
glance.

Remember my focus is on readability which, if I recall
correctly, is a large part of maintenence, which is a
large part of the discussions for the creation of Ada
20+ years ago.


-- 
-------------------------------------------------
-- Merge vertically for real address
--
--     s n p @ t . o
--      k i e k c c m
-------------------------------------------------




  parent reply	other threads:[~2003-07-28  0:21 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3F229597.3090909@myob.com>
2003-07-27 11:42 ` Ada 0x, exception idea ? sk
2003-07-27 15:33   ` Nick Roberts
2003-07-27 17:13     ` Samuel Tardieu
2003-07-28 12:41       ` Nick Roberts
2003-07-28  0:23   ` Wesley Groleau
2003-07-28  2:46     ` John R. Strohm
2003-07-28  3:23       ` Hyman Rosen
2003-07-28  3:24       ` Hyman Rosen
2003-07-27 15:51 ` sk
2003-07-27 17:22   ` Nick Roberts
2003-07-27 19:30     ` sk
2003-07-27 23:04       ` John R. Strohm
2003-07-28  0:07     ` sk
2003-07-28  0:27       ` Wesley Groleau
2003-07-28  2:50       ` John R. Strohm
2003-07-28  0:21 ` sk [this message]
2003-07-28  8:38   ` Preben Randhol
2003-07-28 11:24 ` sk
2003-07-26 14:52 sk
2003-07-26 15:53 ` John R. Strohm
2003-07-26 17:08   ` sk
2003-07-26 17:08   ` sk
2003-07-27  2:46     ` Wesley Groleau
2003-07-27 16:35     ` Hyman Rosen
2003-07-27  9:10 ` Preben Randhol
replies disabled

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