in reply to Re^6: A question about method return values and error checking (unnatural)
in thread A question about method return values and error checking

Decisions in interface design can sometimes have far-reaching consequences. The class of errors where values get injected, omitted or mixed up is typically more disruptive than a case of a missing value.

To sum it up: where there's a method to fetch a single item, it is probably a good idea to return one item precisely.

  • Comment on Re^7: A question about method return values and error checking (unnatural)