Is there a way to a way to define structs outside a module?
No, structs are always tied to a module.
In fact code can’t exist without a module when it’s compiled, so I’m unsure where it would even go. ^.^;
© Copyright Elixir Forum | Terms | Privacy & Cookies