comp.lang.ada
 help / color / mirror / Atom feed
From: ytomino <aghia05@gmail.com>
Subject: Re: Two approaches of iterators for the key-value pairs
Date: Fri, 27 Nov 2015 10:25:12 -0800 (PST)
Date: 2015-11-27T10:25:12-08:00	[thread overview]
Message-ID: <1e85e103-3403-4571-bcfd-e293d396a8f5@googlegroups.com> (raw)
In-Reply-To: <1448643617.2879.6.camel@obry.net>

On Saturday, November 28, 2015 at 2:00:22 AM UTC+9, Pascal Obry wrote:
> Le vendredi 27 novembre 2015 à 07:25 -0800, ytomino a écrit :
> > If you create new iterator for some key-value pairs, which approach
> > do you like?
> 
> I'd like to have tuples in Ada and be able to say:
> 
>    for (Name, Value) of Environment_Variables.All_Variables loop
>       Put_Line (Name & " = " & Value);
>    end loop;
> 
> In many cases tuple would be handy, avoiding creating record in some
> cases just to be able to return two values from a function for example.

More good!
I want tuples, too.

Sorry, to be honest, I had not thought to extend the language, only felt awkward that the plural styles are mixed.
However it looks attractive.


  reply	other threads:[~2015-11-27 18:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-27 15:25 Two approaches of iterators for the key-value pairs ytomino
2015-11-27 16:30 ` Dmitry A. Kazakov
2015-11-27 18:08   ` ytomino
2015-11-27 20:50     ` Dmitry A. Kazakov
2015-11-27 22:52     ` bj.mooremr
2015-11-27 17:00 ` Pascal Obry
2015-11-27 18:25   ` ytomino [this message]
2015-11-27 17:43 ` Brad Moore
2015-11-27 19:38   ` ytomino
2015-11-27 19:46     ` ytomino
2015-11-27 23:11     ` Brad Moore
2015-11-28  8:58       ` Simon Wright
2015-11-28 19:54         ` Brad Moore
2015-11-28 23:34           ` Simon Wright
2015-11-29 21:17             ` Bob Duff
2015-11-29 16:17         ` Simon Wright
2015-11-29 17:55       ` ytomino
replies disabled

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