Creating callbacks

You have created two callbacks X and Y in Elixir. You now want to annotate X and Y to inform the compiler that your intention for the subsequent function definition is to define a callback.

Which of these annotations should you use to achieve this?

  1. @impl true
  2. @impl false
  3. @doc
  4. @impl doc
  5. @doc true

Related Posts