A set type would allow for sending dictionaries where all the values are true. This can be optimized over a map since only the keys have to be sent.
Alternatives
Literal types like true or false could be added. Then a map { [string]: true } could be used instead assuming zap would be smart enough to optimize for this.
Describe your feature
A set type would allow for sending dictionaries where all the values are
true
. This can be optimized over a map since only the keys have to be sent.Alternatives
Literal types like
true
orfalse
could be added. Then amap { [string]: true }
could be used instead assuming zap would be smart enough to optimize for this.