<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 11/19/2015 03:27 PM, Dmitry Belyaev
wrote:<br>
</div>
<blockquote
cite="mid:F4D1D577-13EF-4843-A1C3-1C3DB0FAEBB0@gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
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.<br>
-- <br>
<br>
</blockquote>
<br>
Yes, that would make sense.<br>
Introducing a new data type in the language is quite a big operation
though.<br>
<br>
These empty magic binaries was sort of a last minute solution<br>
to give NIF designers some way to return "safe pointers" to Erlang.<br>
<br>
<br>
/Sverker, Erlang/OTP<br>
<br>
</body>
</html>