I expect Noel would have the same objections to array as to List, only more
so.  (Implementation hiding, contractual indexed access.) I would be
happier with an array than a Collection, simply to get the ordering in the
contract, but I think List is better because it does a better job of
implementation hiding.  (Array /is/ an implementation.)

Cheers

ADK


--------------------------------------------

There is no magic.


                                                                                       
                                          
                    Darrell DeBoer                                                     
                                          
                    <darrell@apach       To:     "James Developers List" 
<[EMAIL PROTECTED]>                          
                    e.org>               cc:                                           
                                          
                                         Subject:     Re: [PATCH] Upgrade to DnsJava 
1.3.1, add DNS Server autodetect, Make use  
                    23/01/2003            of higher level api                          
                                          
                    09:56                                                              
                                          
                    Please respond                                                     
                                          
                    to "James                                                          
                                          
                    Developers                                                         
                                          
                    List"                                                              
                                          
                                                                                       
                                          
                                                                                       
                                          




On Thu, 23 Jan 2003 07:47, [EMAIL PROTECTED] wrote:>
> Bear in mind that I have agreed with several of your points.  However, on
> balance, it is my opinion that List - while not the idealistically
perfect
> solution - is the best compromise available.  Grey lines again.  Both you
> and Serge have correctly pointed out that it doesn't matter very much at
> the end of the day.  I do like a good technical discussion, however!  :-)

When it comes down to it, surely an Array is the best semantic match for
this
contract. Type-safe, ordered, can be iterated multiple times (the problem
with returning an Iterator) and contains no extra baggage.

I'm not proposing that the interface changes, I'd just like to paint the
bike
shed *blue*.

--
ciao,
Daz

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>






-----------------------------------------------------------------------------------------------
Have you seen our website?.... http://www.vodafone.co.nz

CAUTION: This correspondence is confidential and intended for the named recipient(s) 
only.
If you are not the named recipient and receive this correspondence in error, you must 
not copy,
distribute or take any action in reliance on it and you should delete it from your 
system and
notify the sender immediately.  Thank you.

Unless otherwise stated, any views or opinions expressed are solely those of the 
author and do
not represent those of Vodafone New Zealand Limited.

Vodafone New Zealand Limited
21 Pitt Street, Private Bag 92161, Auckland, 1020, New Zealand
Telephone + 64 9 357 5100
Facsimile + 64 9 377 0962

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to