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

Implement best::strbuf and best::result #5

Merged
merged 6 commits into from
Jun 16, 2024
Merged

Implement best::strbuf and best::result #5

merged 6 commits into from
Jun 16, 2024

Conversation

mcy
Copy link
Owner

@mcy mcy commented Jun 16, 2024

This was supposed to be the implementation of best::fmt, but I had to put together two significant prerequisites and it ended up feeling like it should be its own thing. This change adds

  • best::strbuf and best::textbuf, our owning string type.
  • best::result, our version of Result, and functions for constructing one out of a best::option.
  • best::row_forward, the canonical way to flatten a tuple into some kind of call.
  • best::text::operator<=>
  • BEST_GUARD(), our version of Rust's try!()/? and Abseil's RETURN_IF_ERROR().
  • best::encoding_error.

@mcy mcy merged commit 8abe49c into main Jun 16, 2024
2 checks passed
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.

1 participant