[erlang-questions] How to use crypto:hmac_init() and friends?
Sverker Eriksson
sverker.eriksson@REDACTED
Thu Nov 19 16:00:10 CET 2015
On 11/19/2015 03:27 PM, Dmitry Belyaev wrote:
> Wouldn't it make sense to introduce a separate data type for these
> custom data? Or even allow to define new custom types in nifs or
> drivers with serialization and comparison rules.
> --
>
Yes, that would make sense.
Introducing a new data type in the language is quite a big operation though.
These empty magic binaries was sort of a last minute solution
to give NIF designers some way to return "safe pointers" to Erlang.
/Sverker, Erlang/OTP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20151119/a6bc4507/attachment.htm>
More information about the erlang-questions
mailing list