FYI: I didn't put that assert() there -- Markos did. It comes down to this question: do you want a customer's application to crash with an error message because somebody forgot to put in a dictionary string (and a test for it) or would you rather it simply print the key (as my original code before Markos' change did)?
FYI: I didn't put that assert() there -- Markos did. It comes down to this question: do you want a customer's application to crash with an error message because somebody forgot to put in a dictionary string (and a test for it) or would you rather it simply print the key (as my original code before Markos' change did)?