Follow

@velartrill it's a map where the value is the empty struct which requires zero bytes storage. commonly used to have a table to look up which values exist.

@velartrill mhm, somehow the UI didn't display the other replies until i replied.. so i'm late to the party here :D

@bonifartius what the heck is this "golden kappa" thing, i know nothing about twitch

@velartrill id say this in golden color? never really used twitch except for occasionally watching dota2 finals

@bonifartius > requires zero bytes storage

i guess in theory, do we actually know the go compilers optimizes that hack correctly tho?

@velartrill afaik as struct{} is by definition always the same it's optimized away

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.