comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Doing Ada right?
Date: Tue, 28 Jul 2015 10:38:28 -0700
Date: 2015-07-28T10:38:28-07:00	[thread overview]
Message-ID: <mp8ejn$g02$1@dont-email.me> (raw)
In-Reply-To: <971df5a1-ca20-484e-b298-21485e243344@googlegroups.com>

On 07/27/2015 11:42 PM, Egil H H wrote:
> On Monday, July 27, 2015 at 8:42:19 PM UTC+2, Jeffrey R. Carter wrote:
>> I've always wondered why Ada.Text_IO
>> overloads things with and without a File parameter, rather than having one
>> version with the File parameter defaulted to Current_Input.
> 
> Wild guess: 
> It seems logical for File to be first parameter when writing to/from a file, 
> so we need two versions in order to write Ada.Text_IO.Put_Line("Hello World");
> instead of having to write Ada.Text_IO.Put_Line(Item => "Hello World");

If I were doing it, File, having a default, would be the 2nd parameter.

-- 
Jeff Carter
"There's no messiah here. There's a mess all right, but no messiah."
Monty Python's Life of Brian
84

      parent reply	other threads:[~2015-07-28 17:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-27 15:17 Doing Ada right? EGarrulo
2015-07-27 16:32 ` David Botton
2015-07-27 18:28   ` EGarrulo
2015-07-27 18:42 ` Jeffrey R. Carter
2015-07-28  6:42   ` Egil H H
2015-07-28  7:06     ` Shark8
2015-07-28 17:38     ` Jeffrey R. Carter [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox