[m-rev.] for review: move char_to_doc to pretty_printer.m

Zoltan Somogyi zoltan.somogyi at runbox.com
Mon Dec 19 23:48:14 AEDT 2022


For review of the idea of moving x_to_doc functions to pretty_printer.m.
If approved, I would move all such functions to pretty_printer.m,
leaving obsoleted forwarding functions behind. When we delete
these later, one cause of circular .trans_opt dependencies
will have its applicability domain significantly reduced.
Specifically, it should get rid of the dependency of
modules defining functions such as float_to_doc and uint_to_doc
on pretty_printer.m, though the dependencies of modules
defining operations that convert compound values such as
arrays and bitmaps to docs on pretty_printer.m would remain
in cases where the required types and access predicates
are not exported to pretty_printer.m. This would be the case
e.g. for tree234_to_doc, unless e.g. we export tree234_to_lazy_list
(in a non-public interface) to pretty_printer.m.

Zoltan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Log.pp
Type: application/octet-stream
Size: 259 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20221219/907ec257/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DIFF.pp
Type: application/octet-stream
Size: 5011 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20221219/907ec257/attachment-0001.obj>


More information about the reviews mailing list