[prev] [index] [next]

Libraries/Classes (cont)

In designing a library and its interface, we need to consider:
  • what functions will be provided   (small set of orthogonal operations)
  • how functions are invoked   (parameters, return values)
  • who is responsible for resource managment   (library or user?)
  • how errors will be handled   (which ones caught? how signalled?)