-
We're looking at improving parameters and fields to use more enums that we scan from the constants in the docs. However, we've noticed that sometimes we find APIs that share a list of values, but don't share the complete list. One example: BroadcastSystemMessage BroadcastSystemMessageExA The question is what do we do in this case? We could either make two different enums, one for the 9 values and one for the 11 values, or combine them into one set, even though two of its values are invalid for BroadcastSystemMessage. I'm leaning towards combining them into a single enum, but whatever we decide we want to have a consistent strategy that we stick with. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I support merging them. Callers should always reference the documentation to learn what flags are allowed and under what circumstances. |
Beta Was this translation helpful? Give feedback.
I support merging them. Callers should always reference the documentation to learn what flags are allowed and under what circumstances.