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

flag: add Count type #9555

Closed
josharian opened this issue Jan 10, 2015 · 1 comment
Closed

flag: add Count type #9555

josharian opened this issue Jan 10, 2015 · 1 comment

Comments

@josharian
Copy link
Contributor

A hybrid bool/int flag is widely used for verbosity. We have copies now in at least cmd/dist and git-codereview. I think it'd make a very nice addition to the standard library.

Discuss.

@robpike
Copy link
Contributor

robpike commented Jan 15, 2015

It's a flag type used only for that one feature, in my experience, and was invented out of laziness: flag++ is easy to write and C had no booleans.

Let's not promote it further.

@robpike robpike closed this as completed Jan 15, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants