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

Better way to pass Option parameters #14

Open
kilork opened this issue Jul 24, 2021 · 1 comment
Open

Better way to pass Option parameters #14

kilork opened this issue Jul 24, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@kilork
Copy link
Owner

kilork commented Jul 24, 2021

Option<String> does not look nice. I would prefer to have something similar to AsRef<Path>.

Basically it means we should be more flexible with parameters. This must be also checked from compile time perspective.

@kilork kilork added the enhancement New feature or request label Jul 24, 2021
@kilork
Copy link
Owner Author

kilork commented Jul 26, 2021

As I understood from other sources and I think it also good idea - better to use builder pattern. And this can be extended to whole API idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant