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:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user