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

Simple warnings framework #6485

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Simple warnings framework #6485

wants to merge 2 commits into from

Conversation

ethomson
Copy link
Member

Here's a potential simple warnings framework.

I think that the names 'continue' and 'ignore' are probably rather misleading. But bikeshedding on the naming aside, I think that this will help #6430

Edward Thomson added 2 commits February 15, 2023 13:23
@ethomson
Copy link
Member Author

This is the fourth PR to add warnings. 😅 This one is - I think - the simplest, at least for us. We can just define and invoke warnings without a lot of ceremony. This does mean that the user basically has a switch statement over their supported warning types.

I think that's okay? With the possible exception of having to deal with a varargs style callback. I would expect that any reasonable FFI would need to deal with this. But I'd like to validate this a little bit more with (eg) libgit2sharp.

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

1 participant