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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fccea7ca608399cd X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!35g2000pry.googlegroups.com!not-for-mail From: Ivan Levashew Newsgroups: comp.lang.ada Subject: Re: Vector of Vectors. Date: Sat, 17 Jan 2009 02:20:28 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <496e8418$0$25733$4d3efbfe@news.sover.net> <6t8gc1F9ej88U1@mid.individual.net> NNTP-Posting-Host: 83.246.130.218 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1232187628 13852 127.0.0.1 (17 Jan 2009 10:20:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 17 Jan 2009 10:20:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 35g2000pry.googlegroups.com; posting-host=83.246.130.218; posting-account=SWSr0goAAABcqpu6T_j1x1_Ub5y2Ekfy User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.10 (Windows NT 5.1; U; ru),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4377 Date: 2009-01-17T02:20:28-08:00 List-Id: > > > > Ada explicitly emphasizes ease of reading over ease of writing (ARM Introduction). > > Not in this case. > > I agree that the "extra typing" is not the problem. The problem is that > you have to read all that junk you typed, and it's mostly content free. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? Top-posting is what actually happens when one uses downwards closures. In my case, I had to iterate map of vectors. "Iterate" procedure passes my closure just Cursor. I need to invoke Update_Element on Cursor, then Iterate the Vector, then Update_Element on Vector. 4 levels so far. Downwards closures is rather easy way to write write-only Ada code. I've specified the order in which I wrote every line. There are just 2 levels here. 1 declare 5 procedure ...(...) is 9 procedure ...(...) is ... 10 begin 12 Iterate (..., ...'Acess); 11 end ...; 6 begin 8 Update_Element (..., ...'Access); 7 end ...; 2 begin 4 Iterate (...., ...'Access); 3 end; Do you read in the same order? I'd like to have a syntax like this: Iterate (..., ..., new procedure (...) is begin ... end;); Procedure name should be optional, I think.