[m-rev.] for post-commit review: do more kinds of check for all foreign_procs
Julien Fischer
jfischer at opturion.com
Fri Jan 30 16:12:17 AEDT 2026
On Fri, 30 Jan 2026 at 05:19, Zoltan Somogyi <zoltan.somogyi at runbox.com>
wrote:
> For review by anyone. The diff is with -b.
>
> While doing these changes, I saw that we use wildly different terminology
> to refer to the same entities (foreign_procs) in different diagnostic
> messages.
> The three main patterns are these:
>
> "Error: foreign clause for predicate xyz ..."
>
> "In ':- pragma foreign_proc' declaration for predicate xyz ..."
>
> "In the C code for predicate xyz: ..."
>
> I propose that we change all these diagnostics to either something like
> this:
>
> "In the C language ':- pragma foreign_proc' declaration for predicate
> xyz ..."
>
> or to something like this:
>
> "In the C foreign_proc for predicate xyz ..."
>
> The former is more formal and complete, the second is shorter.
> I slightly prefer the second. What do you guys think? Do you have
> another alternative you prefer to these?
>
The second one.
Julien.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20260130/de80b13a/attachment.html>
More information about the reviews
mailing list