comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: List Containers - The Road Ahead
Date: Fri, 09 Nov 2001 17:20:17 GMT
Date: 2001-11-09T17:20:17+00:00	[thread overview]
Message-ID: <lfUG7.19066$xS6.30948@www.newsranger.com> (raw)
In-Reply-To: 9semrm$i79$1@nh.pace.co.uk

In article <9semrm$i79$1@nh.pace.co.uk>, Marin David Condic says...
>
>Maps should look as much like lists as possible. Similar names &
>functionality. It might be better to defer Maps until some kind of decision
>is taken about lists.

>"Ehud Lamm" <mslamm@mscc.huji.ac.il> wrote in message
>news:9sdpku$eu2$1@news.huji.ac.il...
>>
>> That's for lists.
>> To see how the universal the design can be, can someone propose a
>> Map/Dictionary Strawman?

I'd say that we should at least finish getting the kinks out of the iterators
before trying to synthesize a "Maps" package, since it will need them too.

I started with Lists for 3 reasons:

1)  I've implemented a lot of simple ones myself over the years (there are at
least 2 in OpenToken), so I have a bit of experience and could do it quickly.

2)  I think lists and maps should look consistent, so much of the work in
figuring out how the Maps package works would be done in the process of getting
Lists nailed down.

3)  I didn't think that our discussion of Maps had really progressed to that
point yet. I still don't think we are quite there yet, but it may be time to
start talking more seriously. 

For one small example:

What is the general opinion about using private "key" types in the Maps generic?
Remember that this will mean that "<" is not available. Perhaps that's OK if we
provide a boolean comparison routine as another generic parameter, although that
raises the complexity a bit. But then, should we attempt to make that parmemter
consistent with what is done for the "Sort" routine? How exactly?

We also have yet to have the discussion where someone wants "keys" to be their
own generic package/type that then gets passed into "Sort" generics and into
Maps, and hasn't considered how this complicates use. :-)

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html

No trees were killed in the sending of this message. 
However a large number of electrons were terribly inconvenienced.



  parent reply	other threads:[~2001-11-09 17:20 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-08 11:13 List Containers - The Road Ahead Ehud Lamm
2001-11-08 13:55 ` Ehud Lamm
2001-11-08 14:08 ` David Botton
2001-11-08 16:44   ` Darren New
2001-11-08 19:39     ` Marin David Condic
2001-11-09 16:43     ` Ted Dennison
2001-11-09 18:07       ` Darren New
2001-11-11  2:20         ` David Botton
2001-11-12 18:49           ` Darren New
2001-11-08 20:39   ` Ehud Lamm
2001-11-08 22:24     ` Nick Roberts
2001-11-08 23:24       ` Marin David Condic
2001-11-09 17:04         ` Ted Dennison
2001-11-09 17:52           ` Marin David Condic
2001-11-10  2:21             ` Ted Dennison
2001-11-10  4:04               ` Jeffrey Carter
2001-11-10  5:04                 ` Ted Dennison
2001-11-10 19:41                   ` Nick Roberts
2001-11-10 20:48                     ` Florian Weimer
2001-11-10 21:30                       ` Nick Roberts
2001-11-10 23:01                         ` Ted Dennison
2001-11-11 17:42                           ` Jeffrey Carter
2001-11-10 11:57               ` Florian Weimer
2001-11-10 11:59               ` Florian Weimer
2001-11-09  1:55     ` Jeffrey Carter
2001-11-08 19:36 ` Marin David Condic
2001-11-08 20:37   ` Ehud Lamm
2001-11-09 17:20   ` Ted Dennison [this message]
2001-11-08 21:32 ` Nick Roberts
2001-11-09  1:48 ` Jeffrey Carter
2001-11-09 19:04 ` Ted Dennison
2001-11-14  8:36 ` Mats Karlssohn
replies disabled

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