Files
exercises-in-programming-style/21-tantrum
2018-12-13 19:57:17 -08:00
..
2014-01-07 14:13:29 -08:00
2018-12-13 19:57:17 -08:00

Style #21

Constraints:

  • Every single procedure and function checks the sanity of its arguments and refuses to continue when the arguments are unreasonable

  • All code blocks check for all possible errors, possibly print out context-specific messages when errors occur, and pass the errors up the function call chain

Possible names:

  • Tantrum
  • Design by contract
  • Mental breakdown