Subject: Re: bug#75860: Somewhat confusing exception message with append

From: Tomas Nordin <[email-masked]>
Date: Wed, 19 Mar 2025 23:09:56 +0000

Hello Rob

Rob Browning <[email-masked]> writes:

> Tomas Nordin <[email-masked]> writes:
>
>> But, in both cases the faulty argument is reported to be in position 1.
>> I would expect maybe position 2 to be complained about from the second
>> call.
>
> ...and it appears to be correct when run via -c or a script.

Do you mean like

    $ guile -c "(append '(a) 'b '())"
    [...]
    In procedure append: Wrong type argument in position 2 (expecting empty list): b

Here the position is reported as 2 (as expected I think). Was that what
you also observed? (Still confusing for me that we are expecting an
empty list).