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

Add failedDecodes to LossyArray #56

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rnapier
Copy link
Contributor

@rnapier rnapier commented Jul 17, 2022

This is the beginning of an approach I'm considering regarding #41 to track failures. Rather than injecting logging into the system, it tracks failures such that you can check at the end if anything went wrong. I'm exploring whether I can use Mirror to scan a final data structure and collect all failures including in children. But I first wanted to pitch the basic approach and get any input.

I at least want to add this to the other Lossy types, and am considering how to best handle the Default types. Currently "default" is used both to mean "value when there is no value to avoid Optionals" and also "value when the data is corrupt to avoid throwing." IMO these are very different use cases, and I'm thinking through how to best split them up and make their differences explicit.

@marksands
Copy link
Owner

I'm definitely into this idea. But you also have me scratching my chin at Default being an awkward solution that currently means both placeholder and error fallback. Definitely open to discussion here if you have more thoughts and ideas.

@isadon
Copy link

isadon commented Mar 16, 2023

Any reason why this PR was abandoned? Super useful to have, I need it 🤣 !

@marksands
Copy link
Owner

@donileo sorry man, open source is hard 😓 . I want to do more with this project, but it's hard to muster the strength at times. I would be open to the idea of having a collaborator on this repo when life gets busy, for the right person of course. 🙏 thanks for your patience.

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.

None yet

3 participants