OK, so explaining the passive aggressive style with monadic exceptions in a language that already has exceptions does not work. Back to regular exceptions in style 23. I left the monadic version as an academically interesting variation. In the process of returning to basic exceptions, I needed to clarify the tantrum style a little better too.

This commit is contained in:
Crista Lopes
2013-11-30 19:05:07 -08:00
parent 76f7ccb1d3
commit 9a9c525326
5 changed files with 122 additions and 41 deletions

View File

@@ -1,13 +1,15 @@
Style #21
Style #22
==============================
Constraints:
- Every single procedure and function checks the sanity of its
arguments and refuses to work when the arguments are unreasonable
arguments and refuses to continue when the arguments are
unreasonable, throwing an exception
- All code blocks check for all possible errors and refuse to continue
when things go wrong
- All code blocks check for all possible errors, print out
context-specific messages when errors occur, and pass the exceptions
up the function call chain
Possible names: