It’s a little weird, but my personal style is to put the @impl on a standalone function head (when defining multiple clauses for the function).
def Worker do
use GenServer
@impl GenServer
def handle_call(request, from, state)
def handle_call(:foo, from, state) do
# ..
end
def handle_call(:bar, from, state) do
# ..
end
end
I guess in my mind it suggests I’m about to define multiple clauses for the same function as opposed to recognizing multiple definitions happen to be for the same function.






















