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
{{ message }}
This repository was archived by the owner on Jan 8, 2026. It is now read-only.
## Fizzlebop is a pair of fields which serializes as "value-of-a:value-of-b" as a string.
type Fizzlebop struct {
a String
b String
} representation stringjoin {
join ":"
}
Unless stringjoin prescribes some kind of escaping scheme, the type of a and b is not String but the subtype of all strings that do not contain the ':' character, otherwise the representation is not unique and thus not reversible. So basically saying that a can be any string is a lie.
Is something like "strings that do not contain ':' expressible in ipld schema?
I find representations for a limited subset of a type somewhat frightening. The type definition is no longer that useful since you need to know the representation to know the limits. Also, the info that the strings may not contain : is only very implicitly available and thus not obvious.