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,c733905936c6b6b0 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.135.106 with SMTP id pr10mr568583pbb.3.1334677703116; Tue, 17 Apr 2012 08:48:23 -0700 (PDT) Path: r9ni67065pbh.0!nntp.google.com!news2.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: [OT] interesting reason why a language is considered good Date: Tue, 17 Apr 2012 16:48:23 +0100 Organization: A noiseless patient Spider Message-ID: References: <8603135.951.1334573001928.JavaMail.geo-discussion-forums@vbbdy9> <4f8c06f5$0$7617$9b4e6d93@newsspool1.arcor-online.net> <14veb9cpamoda.ck9fbsd5m9m$.dlg@40tude.net> <4f8c3431$0$7627$9b4e6d93@newsspool1.arcor-online.net> <4f8c52b2$0$7627$9b4e6d93@newsspool1.arcor-online.net> <9s7d2eufbh6f$.1ivcyxfztaq42$.dlg@40tude.net> <4f8c93a0$0$6638$9b4e6d93@newsspool2.arcor-online.net> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="15889"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bFGVlBzGw2FhLLyigprLE8MhNBLM3irQ=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (darwin) Cancel-Lock: sha1:38av1jAl1fQdn1dqEggZ/taruak= sha1:Y15nlFG/Xl+csZkC+a+CRftGWs8= Content-Type: text/plain; charset=us-ascii Date: 2012-04-17T16:48:23+01:00 List-Id: "Randy Brukardt" writes: > Unfortunately, this solution makes insanely wordy calls: > > Leave (Scheduled_Departure => Now); > > In many cases, the parameter names overwhelm the actual values. The > "solution" usually used is to omit them from the calls altogether, > reducing readability and understandability. Your "insanely wordy" is my "perfectly natural"! procedure Serve (Using_Port : GNAT.Sockets.Port_Type; At_Priority : System.Priority := System.Default_Priority; With_Stack : Positive := 20_000; Logging_Via : Logger := null; Tracing : Boolean := False); called as Serve (Using_Port => 8080, With_Stack => 40_000, Tracing => Verbose); Now that I look at them, both would probably be improved with a bit of alignment: Serve (Using_Port => 8080, With_Stack => 40_000, Tracing => Verbose);