Todd Biske wrote:
> Augmenting by allowing the specification of optional or
> conditional values makes more sense, although not all languages allow
> this to be made explicit as can be done with XML Schema which does
> leave the debate open. You could argue that the use of an exception
> does make things more explicit than augmenting the return type.
> Interesting debate and one where there will only be opinions, and no
> right or wrong answer.

If you want to know if there is a game today, that's another function of the 
service.  That way, you are making it explicit what you are needing to know. 
Then, throwing an exception on a day that there is no game is exactly what 
makes 
sense because you have a way to know why such an exception occurs.

Gregg Wonderly

Reply via email to