Trying to grok @impl

Apparently @impl can take true or the name of a module.

Is there a reason it shouldn’t take false? In my mind, it makes sense
to say, “This function has the name of an optional callback, but it’s
purely coincidental.”

Comments?
Hal

Sounds like a bug waiting to happen then. ^.^;

1 Like

There is that, yes. :slight_smile:

But @impl is optional… If it’s missing, is it missing because I
forgot it, or because I intentionally didn’t put it there?

Hal

2 Likes

In general it is optional. But if you used it once in your module, you have to use it everywhere, where you implement a callback.

2 Likes