comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Doing Ada right?
Date: Tue, 28 Jul 2015 00:06:23 -0700 (PDT)
Date: 2015-07-28T00:06:23-07:00	[thread overview]
Message-ID: <8e7cf7af-2ef7-4e98-93e5-0bb7b0f815f0@googlegroups.com> (raw)
In-Reply-To: <971df5a1-ca20-484e-b298-21485e243344@googlegroups.com>

On Tuesday, July 28, 2015 at 12:42:26 AM UTC-6, 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");

Well, if it was Put( Item : String; To : File ) it would still read well... though maybe best if it was called "write" in that case.


  reply	other threads:[~2015-07-28  7:06 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 [this message]
2015-07-28 17:38     ` Jeffrey R. Carter
replies disabled

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