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: a07f3367d7,5af5c381381ac5a7 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!195.96.0.7.MISMATCH!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 26 May 2010 19:20:00 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada requires too much typing! References: <4bfd19ba$0$2362$4d3efbfe@news.sover.net> In-Reply-To: <4bfd19ba$0$2362$4d3efbfe@news.sover.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Message-ID: <4bfd5840$0$6874$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 26 May 2010 19:20:01 CEST NNTP-Posting-Host: 1246e694.newsspool2.arcor-online.net X-Trace: DXC=Wn@KL=2GWbA0YVY]kmLTlDA9EHlD;3YcB4Fo<]lROoRA8kFiPO\@SDnc\616M64>JLh>_cHTX3jM\\`E2_0b]5M X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:12042 Date: 2010-05-26T19:20:01+02:00 List-Id: On 26.05.10 14:57, Peter C. Chapin wrote: > One of the people on that group posted this comment related to the fact that > Java requires public/private access specifiers on methods whereas Scala uses > public by default. Thus in the "common" case of a public method you don't > have to type the word 'public'... In this particular case of writing "public" or not, there is an interesting point. If you allow defaults, then omitting access specifiers should mean "public", not anything else. The reason is that this default forces programmers to get their publicly announced subprograms right, semantically, to be called by just anyone. Ideally, of course. I don't know whether lazy use of a keyboard enables programmers to use the few seconds to get the interface right. Ada in a sense makes specifying access (syntactically) simpler: everything before "private" is public, without mention. That leaves a question: is specifying access using visibility rules and child packages artistry? ;-) Anyway, if understanding text requires more than linear reading, there are arguments in favor of conciseness. UML or any other "bird's eye view" tool show the usefulness of seeing relations between pieces of source text in one place.