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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,86c750b8474bf6d5 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.germany.com!news.belwue.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Mon, 09 Jun 2008 13:00:44 +0200 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: About String References: <484ABED3.8040909@obry.net> <484b802a$0$23844$4f793bc4@news.tdc.fi> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <484d0d5c$0$7537$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 09 Jun 2008 13:00:44 CEST NNTP-Posting-Host: 64b1a0ae.newsspool1.arcor-online.net X-Trace: DXC=00R`RbeEj[:=FQB?mjjV50ic==]BZ:af>4Fo<]lROoR1<`=YMgDjhg2IF:Lh>_cHTX3j=m6WJl2O Robert A Duff schrieb: > Maciej Sobczak writes: > >> You did not state it explicitly, but I presume that you allow mixing >> declarations with executable code ("as in Java and other languages")? > > Yes, if I ran the circus, I would allow that. I really find it annoying > that I have to add 3 useless lines of code (declare/begin/end) and an > extra level of indentation, when all I wanted to do was declare > a very-local object. I find it annoying when I have to search other people's procedures for variables. A typical sequence of statements is sprinkled with declarations (Java, C, Perl, ...) and no oher indication of the newly introduced variables other than two identifiers before "=" or ";". As Dmitry says, there is an *implicit* scope only. When I'm up the wall I speculate whether this viewpoint on language use is driven by a desire to achieve income by obfuscation? The tempting quick hack? To me, ad hoc variables between statements and Java classes fully named in source but without "import" at the head of the source file are similar in character. The good news is: computers can help us with getting the necessary "paper work" (declare block etc.) done; use a good editor.