[m-rev.] for post-commit review: print more info for foreign types

Mark Brown mark at mercurylang.org
Thu Jun 4 13:01:13 AEST 2015


On Thu, Jun 4, 2015 at 9:56 AM, Zoltan Somogyi
<zoltan.somogyi at runbox.com> wrote:
>
>
> On Mon, 01 Jun 2015 16:02:15 +0100, matthias.guedemann at googlemail.com (Matthias Güdemann) wrote:
>> I agree, that arity would be helpful
>
> That is trivial to do. However, since I expect that 0 will be
> the most frequent arity by far, should it be printed only
> if it ISN'T zero? And why would one want to know the arity
> only, and not the identities of the argument types?

Exactly.

> Any opinions on what behavior would be most useful? (I don't have
> any preference myself.)

My opinion is not to print type information at all. It's not given for
Mercury values, and it isn't needed for foreign values - there are
other ways to look at the type.

Cheers,
Mark.



More information about the reviews mailing list