From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9b2046241520981f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-27 17:20:46 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!freenix!enst.fr!not-for-mail From: sk Newsgroups: comp.lang.ada Subject: Re: Ada 0x, exception idea ? Date: Sun, 27 Jul 2003 19:21:03 -0500 Organization: ENST, France Message-ID: References: <3F229597.3090909@myob.com> NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1059351645 44368 137.194.161.2 (28 Jul 2003 00:20:45 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Mon, 28 Jul 2003 00:20:45 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020828 X-Accept-Language: en-us, en X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:40880 Date: 2003-07-27T19:21:03-05:00 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 -------------------------------------------------