Post #2362 183 Dec 2, 2021, 07:16 UTC #elixirToday I Learned: Elixir __struct__/0https://til.hashrocket.com/posts/kfn3wvdqdp-elixir-struct0 Hashrocket Today I Learned: Elixir __struct__/0 When we define a struct via defstruct macro we end up getting a __struct__/0 function on both struct module definition and on each struct map. The intriguing part is that the implementation of the module and the map are different, check this out: