red-blox / zap

A lightning fast networking solution for roblox.
https://zap.redblox.dev
MIT License
89 stars 14 forks source link

[FEAT] Set type #83

Closed nezuo closed 2 months ago

nezuo commented 3 months ago

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 or false could be added. Then a map { [string]: true } could be used instead assuming zap would be smart enough to optimize for this.

sasial-dev commented 2 months ago

Merged into master on 0.6.x.