Partial Functions

Leading examples

  • 1/0
  • Bullet Two
  • Bullet Three

Design Strategies

  • Defensive
    • Let the user know he made a mistake
  • Total
    • Do something sensible with the input
  • By Contract
    • Not obeying? All bets are off!

deck

By Ingmar Dasseville