It is more difficult than you would expect to check if something in Elixir 
is a module. I think it is fairly reasonable to build this functionality 
into the language. The best way I've found to do this is to call a function 
on the value and rescue from the `UndefinedFunctionError`. This feels a bit 
hacky to me and I think there should be a more elegant solution.

-- 
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/7b5c9d6c-fc3a-4365-9c28-7711be1c60e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to