Skip to content

Commit ec374e3

Browse files
committedApr 19, 2025·
minor improvements
1 parent a6cb013 commit ec374e3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
 

‎text/main/controlFlow/exceptions/exceptions.tex

+4-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@
100100
\end{enumerate}%
101101
%
102102
\bestPractice{exceptions}{%
103-
Errors should not be ignored and input should be sanitized. %
104-
Instead, the input of our functions should be checked for validity (where reasonable). %
105-
\pythonilsIdx{Exception} should be raised as early as possible if any unexpected situation occurs.%
103+
Errors should \emph{not} be ignored and input should \emph{not} be artificially sanitized. %
104+
Instead, the input of our functions should be checked for validity wherever reasonable. %
105+
Faulty input should always be signaled by errors breaking the program flow. %
106+
\pythonilsIdx{Exception} should be raised as early as possible and whenever an unexpected situation occurs.%
106107
}%
107108
%
108109
\endhsection%

0 commit comments

Comments
 (0)
Please sign in to comment.