Timeline for Find the smallest substring that contains some given subset of characters
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 30, 2017 at 5:29 | vote | accept | Jianmin Chen | ||
| Sep 29, 2017 at 14:39 | history | edited | Maxim | CC BY-SA 3.0 |
added 8 characters in body
|
| Sep 29, 2017 at 10:16 | history | edited | Maxim | CC BY-SA 3.0 |
added 870 characters in body
|
| Sep 29, 2017 at 8:32 | comment | added | Maxim | @JianminChen It is redundant to check arguments in private API because you should take care about their validity in the code that is calling the method. Obviously you know how to call your private methods in your code and what arguments should be passed to them. So before to call any private method you check if the method can be called. But you don't know how your public API will be used by a user so you should say if something went wrong. Exception is the native way to do that. | |
| Sep 29, 2017 at 7:56 | comment | added | Jianmin Chen | I am surprised to know that you are so good at c#. I like to ask you about your comment about public method return exception, why private no need to throw exception? | |
| Sep 29, 2017 at 7:25 | history | answered | Maxim | CC BY-SA 3.0 |