Not performance I’d say… Semantic reasons. It doesn’t make sense for all structs.
Also let’s take a fictive set which implements access and returns either true or false, depending on if the value is a member.
The struct itself has only a single field, which shall not be made accessible, but instead access is just a Map.get(s.m, value, false).
I’m not aware of any examples though, but perhaps you can find something in elixir code base for maps or keywordlists.






















