Elixir structs vs Erlang records

Great benchmark!

In practice, wouldn’t the datastructure’s internals usually be read/patternmatched/created/modified from within the same module that defines it? So is preventing these optimizations justified?

2 Likes