I also like the idea of adding option checks to defdelegate.

On a related note, what about adding some sanity checks to `@doc delegate_to`?
For example, I'd like to get a warning about mismatches such as this:

  @doc delegate_to: {Foo, :bar, 2}
  defdelegate bar(baz), to: Foo

For that matter (ducking), what about avoiding the whole problem?  For example,
give `defdelegate` an option to create the `@doc delegate_to` entry 
automagically:

  defdelegate bar(baz), to: Foo, :doc

-r

-- 
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/65ADDE4B-43FB-4EB4-9CD8-F03396B0707B%40gmail.com.

Reply via email to