|
|
|
|
|
by tijmendj
2325 days ago
|
|
I agree it might look a bit excessive, but it greatly cuts down on complexity and possible unexpected behavior. If you accept '60s' as 60 seconds, then the next questions are: - Will it also accept '60000ms'? - What does it do if I pass an int or float anyway? Will it implicitly take it to be seconds? - Will it throw an exception if I use an unexpected value? If so, which exceptions can I expect? Will it just chug along and use a default? |
|