-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should conversion functions return nil on nil input? #63
Comments
Thanks for opening this issue. I agree that it is unfortunate that an While I personally dislike how |
If we supply nil to a conversion function, it throws an
AssertionError
We had an issue in production where this happened w/ some unexpected input and since it is an Error and not an Exception some things we're not handled properly.
Does it make sense to return nil on nil input? This feels a bit more idiomatic clojure usage to me.
At the very least throwing
IllegalArgumentException
or something may be better than anAssertionError
?The text was updated successfully, but these errors were encountered: