lexmag / elixir-style-guide

An opinionated Elixir style guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Specify multi-line struct format

lpil opened this issue · comments

%Pet{name: "Felix",
     species: "Cat"}

%Pet{
  name: "Felix",
  species: "Cat",
}

Which is preferred? :)

@lpil second one, being like a map. I'll see about mentioning this somewhere in the guide.

Thanks :)