by
kiru
(04.01.2022)
Elixir Optional Parentheses
tl;dr
Just discovered that you parentheses in Elixsir are optional.
Saw this example on the ecto documentation page:
case MyRepo.insert %Post{title: "Ecto is great"} do
{:ok, struct} -> # Inserted with success
{:error, changeset} -> # Something went wrong
end
Rest of content here