-
Notifications
You must be signed in to change notification settings - Fork 101
Consider switching format_pattern to (String, Vec<Error>) #125
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
Comments
Related: we could also consider removing |
What do you mean by that? |
Since errors would be returned from let value = bundle.format_pattern(&pattern, Some(&args), &mut errors); to: let (value, maybe_errors) = bundle.format_pattern(&pattern, Some(&args)); |
Ah yes, that was my thinking as well! |
This gets moved to 0.8. |
I actually went the other direction - I now accept a I may also switch to allow not to pass the errors in which case errors won't be populated at all. |
I'm going to close it. I believe that errors vec should not be allocated as part of the return value, and instead should be passed to the call in some higher level code that will handle the outcome of errors (fallbacks, reporting etc.). |
Are you still planning to change the return value of
format_pattern
to(String, Option<Vec<Error>>)
?Originally posted by @stasm in #120
The text was updated successfully, but these errors were encountered: