It is not OK to read from the BEAM file. Typespecs are annotations, we are
not supposed to rely on it during runtime, you will need to repeat the
definition in your typespecs in your code as well.



*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

On Mon, May 9, 2016 at 4:43 AM, eksperimental <eksperimen...@autistici.org>
wrote:

> I'm  trying to fix this bug.
> https://github.com/elixir-lang/elixir/pull/4582/files#r62423420
>
> I'm trying to see how can I access a module type (Inspect.Opt.t/0 in
> this case), but I cannot seem to find anything suitable in
> Kernel.Typespec
>
> If anybody knows an easy way  (other than parsing the beam file), It
> will be appreciated.
>
> if not, Jose, is it ok to read from the beam file?
> cheers
>
> --
> 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 elixir-lang-core+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/20160509094345.06f790b2.eksperimental%40autistici.org
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4JXUq66GPX4H6YNj-NBa%3D0z7wVbMgYwOPiWzEMrHFEXMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to