|
|
|
|
|
by zorgmonkey
496 days ago
|
|
It is almost never I good idea to assert in a library, unless the error is truly unrecoverable. I think returning an error code\throwing an exception would be very reasonable and a much better API than failing silently though. |
|
Like getting an input that is too long? :)
I think a library asserting that the preconditions of its arguments are true is fine.