[erlang-questions] How to use crypto:hmac_init() and friends?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions