-
Notifications
You must be signed in to change notification settings - Fork 301
Closed
Labels
Description
There is a rule under Source Code Layout which reads:
-
...but run single-line
def
s that match for the same function together.def some_function(nil), do: {:err, "No Value"} def some_function([]), do: :ok def some_function([first|rest]) do some_function(rest) end
I'm curious how applicable this is or if there are any edge cases or other issues or problems it causes. Should it be amended? Does anyone have counter-examples?
Thanks to @DavidAntaramian for bringing this up on another channel.