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.
In reply to Re^7: A question about method return values and error checking (unnatural)
by Anonymous Monk
in thread A question about method return values and error checking
by wee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |