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

Avoid "Switch" type arguments to modifiers #57

Open
harendra-kumar opened this issue Jul 7, 2022 · 0 comments
Open

Avoid "Switch" type arguments to modifiers #57

harendra-kumar opened this issue Jul 7, 2022 · 0 comments

Comments

@harendra-kumar
Copy link
Member

We have option modifiers like this:

force :: Switch -> Mv -> Mv

The idea to use a Switch type was that we can use force On or force Off at any point when we are composing the modifiers. So if we have a bundle of options which have turned force On then we can use force Off on it to clear that flag. This may not be very useful when there are few modifiers for a command. We can consider using a more terse force :: Mv -> Mv that will just enable force on the default options.

This issue is for consideration/discussion, not for immediate implementation.

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

1 participant