defmodule Schema do
@types [Type1, Type2...]
...
end
defmodule Type1 do
use MyType
...
end
defmodule Type2 do
use MyType
...
end
# some more typesYou need to delay compilation of Schema till all modules are compiled.
That only works if you know in advance the modules you are testing for. Here, we need to detect when all modules other than schema have been compiled, and their names are not known in advance.
--
You received this message because you are subscribed to a topic in the Google Groups "elixir-lang-talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elixir-lang-talk/K209eiTNimA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/7ea9c9b4-f680-4ae0-acfe-18d7c39559c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I wanted to understand the limitations of what you can do at compile time and make sure I don't miss a good way to archive it.
I just take this as not feasible and continue loving elixir :D