[erlang-questions] Erlang type spec questions

lloyd <>
Thu Oct 15 00:38:35 CEST 2015


Hello,

1. -spec open_read(Table :: list(), Type :: atom()) -> {ok, Name} | {error, Reason}.

Gives me Error: ...Reason is unbound

Question: How should I represent?

2. How does one represent a File?
    
E.g. -type get_tags(File :: ??? 

3. Is a dets table a file or a list? 

E.g. How would one represent it?

Apologies if I missed these in the type docs.

Thanks,

LRP





More information about the erlang-questions mailing list