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

enum flags (ASICachePolicy etc) should be prefixed #194

Open
marcetcheverry opened this issue May 27, 2011 · 0 comments
Open

enum flags (ASICachePolicy etc) should be prefixed #194

marcetcheverry opened this issue May 27, 2011 · 0 comments

Comments

@marcetcheverry
Copy link

The enums such as ASICachePolicy, it is always useful to always prefix your flags with the type,

so typedef enum ASICachePolicy { ASICachePolicyDefault, ASICachePolicyDoNotRead …}

this makes code completion much more useful, as I can just type ASICachePolicy and get all the possible flags without having to look at the docs. Notice that Apple does this in UIKit.

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