Skip to content
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

Result.print works only when the error type is an exception #879

Open
rixed opened this issue Sep 21, 2018 · 2 comments
Open

Result.print works only when the error type is an exception #879

rixed opened this issue Sep 21, 2018 · 2 comments

Comments

@rixed
Copy link
Contributor

rixed commented Sep 21, 2018

Wouldn't it be more sensible if Result.print would take a second printer for the error type, as Tuple2 does for instance?

@UnixJunkie
Copy link
Member

I think a to_string would be more useful than a print, but maybe that's off topic.

@rixed
Copy link
Contributor Author

rixed commented Sep 26, 2018

I think a to_string would be more useful than a print, but maybe that's off topic.

Batteries value printing facilities may be the main reason I use batteries, that's why I usually insist on such details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants