-
Notifications
You must be signed in to change notification settings - Fork 13
FormatFieldType: renamed to VariantFieldType #203
Conversation
gamgee/utils/variant_field_utils.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the declaration of this enum should be moved to variant.h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we do that, we will be exposing it to the developers. Right now it's a private gamgee implementation thing. I like it this way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but if I follow your motivation, I think we can move this utility file into the main directory and call it VariantFieldType instead of "utils".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a utility, and shouldn't be buried in a utilities file. With other similar enums (eg., Base, CigarOperator, etc.) we've put them in the main header. Plus there are public functions all over the place that take VariantFieldType as an argument.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you rename the file from field utils to VariantFieldType I'd be ok with keeping it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename but keep it in utils?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I meant rename and move out of utils. It's not a utility
78835ec to
fac3abd
Compare
|
Renamed |
fac3abd to
66d5127
Compare
…pe_171 FormatFieldType: renamed to VariantFieldType
fixes #171