[erlang-questions] NIF resource and typespecs

Loïc Hoguin essen@REDACTED
Wed Apr 9 15:25:33 CEST 2014


Hello,

NIF resources appear as a magic empty binary on the Erlang side. What 
typespec should I use for them though? Is there anything better than this?

-opaque my_nif_resource() :: any().

Thanks.

-- 
Loïc Hoguin
http://ninenines.eu



More information about the erlang-questions mailing list