This I don’t quite understand. You’re saying if @impl true shows up before just one of the callbacks, the others will be automatically given warnings? That either doesn’t make sense (you only wanted to implement one of the optional callbacks) or it could be done for all automatically (initiated by the use in the first place).
What I meant was that the intention to use a behaviour is now “shown” in two places, not just one (i.e. first the use and then the @impl. Wether that is a good or bad thing is subjective. ![]()
Yeah, I thought about something similar. Would it be possible to do def GenServer.handle_call(...)?
A list of the ideas in this thread so far:
@impl true
def handle_call(message, from, state) do
# ...
end@impl GenServer
def handle_call(message, from, state) do
# ...
end
defimpl handle_call(message, from, state) do
# ...
end
def GenServer.handle_call(message, from, state) do
# ...
end
impl GenServer do
def handle_call(message, from, state) do
# ...
end
end






















