zserio icon indicating copy to clipboard operation
zserio copied to clipboard

Consider to implement warning for optional fields with default value

Open mikir opened this issue 1 year ago • 0 comments

Even optional fields can have default values. However, if optional value has default value, it means that this field will be set during construction of Zserio object. Thus, such field will be always present after Zserio object construction which might be misleading for users.

Therefore, it might be good if zserio compiler could fire a warning in case of any optional field with default value.

mikir avatar Mar 22 '23 07:03 mikir