[unclassified] Re: [MOBY-l] List of services

Mark Wilkinson markw at illuminae.com
Mon Oct 13 13:31:56 EDT 2003


Sorry, I'm not getting it... your service signature says that you 
consume a collection, or it says you consume a single (simple); it can't 
say both, and it can't say either/or... so you should never have to 
write an IF block at all...???

M


Ken Steube wrote:

>What I was referring to was that I have to program both cases in my
>services: if (simple) ... else if (collection) ... which I'm not doing
>right now. I'm discriminating against services that use collections. If a
>simple were just a case of a collection then I could write one loop
>foreach ($obj->articles). I don't know how that would cause an increase in
>the amount of code or anything else since you already have collections.
>
>Ken
>
>On Mon, 13 Oct 2003, Mark Wilkinson wrote:
>
>  
>
>>hey P!
>>
>>    
>>
>>>And the cost is that you have to consider the case where a service
>>>takes a collection with a single item, or a single item, separately.
>>>
>>>
>>>      
>>>
>>Is it the "collection with single item" or the "or" part of that
>>scenario that is supposed to be giving me problems?
>>
>>M
>>
>>
>>_______________________________________________
>>moby-l mailing list
>>moby-l at biomoby.org
>>http://biomoby.org/mailman/listinfo/moby-l
>>
>>    
>>
>
>  
>




More information about the moby-l mailing list