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

feat: error as string #42

Merged
merged 3 commits into from
Nov 30, 2024
Merged

feat: error as string #42

merged 3 commits into from
Nov 30, 2024

Conversation

zaaarf
Copy link
Contributor

@zaaarf zaaarf commented Nov 28, 2024

The advantage is that, unlike (), String implements Display. I get that you made it () to avoid having a library that users have to depend on at runtime, but this should be a fair compromise.

Makes it easier to do debugging (and some libraries want error types to necessarily implement Display).

P.S.: just realized that in my previous PR (#41) I forgot to update the README and docs accordingly. You should probably do that. Or I can, if you prefer, I don't mind.

@Yag000
Copy link
Owner

Yag000 commented Nov 30, 2024

Thank you for the PR!

I think that’s a good idea, so I’ll go ahead and merge it.

As for the documentation, I’m currently a bit tied up, but if you can make a PR for that as well, I’d really appreciate it :)

@Yag000 Yag000 merged commit fe0ceba into Yag000:master Nov 30, 2024
3 checks passed
@zaaarf zaaarf deleted the feat/string-error branch December 1, 2024 12:54
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

Successfully merging this pull request may close these issues.

2 participants