You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the initial design, @rchamarthy set up constants for "type identifiers" (LVType, DiskType, AttachmentType) using integer type and iota.
As I am (ab)using json as a output format, I then wrote marshallers and unmarshallers that display these types as strings and support reading them as integer or string.
@rchamarthy, could you give some reasoning for why we have:
type LVType int
const (
THIN LVType = iota
THICK
)
@smoser these to me are actually enums and i would like to use them as such in code. For example use them as index in an array etc. The go idiom is to go generate the boiler plate for making these types serializable to strings.
@tych0 brought up this question in #49.
In the initial design, @rchamarthy set up constants for "type identifiers" (
LVType
,DiskType
,AttachmentType
) using integer type and iota.As I am (ab)using json as a output format, I then wrote marshallers and unmarshallers that display these types as strings and support reading them as integer or string.
@rchamarthy, could you give some reasoning for why we have:
rather than:
The text was updated successfully, but these errors were encountered: