[m-dev.] deprecating {read,write}_binary etc

Zoltan Somogyi zoltan.somogyi at runbox.com
Fri Feb 7 17:07:41 AEDT 2020

2020-02-07 17:03 GMT+11:00 Julien Fischer<jfischer at opturion.com>:
> The predicates {read,write}_binary are currently implemented in a manner
> which is (a) space efficient, (b) portable and (c) works with the non-C
> backends.  (They currently work by calling io.write with a binary stream.)
> I propose we mark them as obsolete.  While having a generic mechansim for
> doing binary serialization of Mercury terms would be nice, what's currently there falls so short of the mark as to be useless.

The second paragraph *so* does not follow from the first. Did you leave out
a "not" somewhere?

> Additionally, I propose that we also mark any predicates or functions that
> manipulate bytes as the lower 8 bits of an int as obsolete; all such predicates or function should now have uint8 replacements.

I am fine with that, provided that the uint8-using replacements actually exist.


More information about the developers mailing list