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

Support for nb #19

Open
BRA1L0R opened this issue Dec 3, 2022 · 4 comments
Open

Support for nb #19

BRA1L0R opened this issue Dec 3, 2022 · 4 comments

Comments

@BRA1L0R
Copy link

BRA1L0R commented Dec 3, 2022

Hello,

I don't know if this project is still maintained but I was thinking of making a pr adding support for the docs.rs/nb crate. Would that be ok?

@BRA1L0R
Copy link
Author

BRA1L0R commented Dec 3, 2022

It'd also be more correct to use Option instead of having a None direction in the enum, which would make the nb code more correct

@leshow
Copy link
Owner

leshow commented Dec 5, 2022

It's a pretty small crate, I'm not actively doing anything with it but I'm happy to merge stuff if it makes sense. I don't recall nb being very popular when I first wrote this (years ago now)... Do the embedded hal crates use nb? Would you add support behind a feature gate or change the main implementation?

I don't think the Option is necessarily "more correct", just a different way of representing the same thing. It's subjective.

@BRA1L0R
Copy link
Author

BRA1L0R commented Dec 6, 2022

Would you add support behind a feature gate or change the main implementation?

Adding it behind a feature gate was my idea

Just a different way of representing the same thing. It's subjective.

Yes you're indeed right but it doesn't really fit with the non-blocking method as the None variant would never be returned. It's something that could get explained in the documentation though

@leshow
Copy link
Owner

leshow commented Dec 7, 2022 via email

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

No branches or pull requests

2 participants