Added style #19. True story.

This commit is contained in:
Crista Lopes
2013-09-25 17:55:23 -07:00
parent e02996f6e0
commit 084de0aefe
2 changed files with 88 additions and 0 deletions

17
19-defensive/README.md Normal file
View File

@@ -0,0 +1,17 @@
Style #19
==============================
Constraints:
- Every single procedure and function checks the sanity of its
arguments and either returns something sensible when the arguments
are unreasonable or assigns them reasonable values
- All code blocks check for all possible errors and escape the block
when things go wrong
Possible names:
- Defensive
- Pessimistic
- Never trust the caller nor the callee