Now, as I understand it this type information *is* retained in the
compiled beam file. So you could possibly write something that will
check the types for you, but I don't think it would be very
performant.
I think the right answer, at least with out more details, is to do a
good job declaring specs and using them, while relying on dialyzer to
tell you when there are problems.
> _______________________________________________
> erlang-questions mailing list
> erlang-q...@erlang.org
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
On Tue, Jul 12, 2011 at 7:35 PM, Tristan Sloughter
<tristan....@gmail.com> wrote:
> OK, that is what I thought. But declaring specs and relying on dialyzer for
> problems doesn't help when I want to match on a type. But I guess I'll have
> to either bundle the "type" with the value of the record field. Or have some
> module that accepts a record field atom and returns its "type"...
> Tristan
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions