Hello! Sometimes I want to make all callbacks in a behaviour optional. Right now I need to specify everything manually.
My proposal would be something consistent to defoverridable, in which you can make all methods overridable by using the module. So instead of defmodule SomeBehaviour do @callback x(a, b) :: boolean @callback c(a, b) :: binary @optional_callbacks x: 2, c: 2 end defmodule SomeBehaviour do @callback x(a, b) :: boolean @callback c(a, b) :: binary @optional_callbacks SomeBehaviour end -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/9150632a-e2a1-46c8-b885-b3fd297a2cf4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
