Iterator/size() (was: [Biocorba-l] BSANE and bioCORBA)

Martin Senger senger@ebi.ac.uk
Fri, 1 Jun 2001 16:22:39 +0100 (BST)


> 
> Perhaps the size() method should not be in the iterator.
>
   Definitely my opinion.

> 
> The method can be a pain as you said, because server impl must scan all
> the elements (e.g.. annotations in this case).
>
   But it's a must (IMHO). I cannot imagine to implement robust clients
without being able to know first what I can get back. But if you feel that
such features would be long and difficult for some server implementation,
put there an exception (not_coutable, not_known, not_implemented,
whatsever).

   Martin

-- 
Martin Senger

EMBL Outstation - Hinxton                Senger@EBI.ac.uk     
European Bioinformatics Institute        Phone: (+44) 1223 494636      
Wellcome Trust Genome Campus             (Switchboard:     494444)
Hinxton                                  Fax  : (+44) 1223 494468
Cambridge CB10 1SD
United Kingdom                           http://industry.ebi.ac.uk/~senger