bug#75860: Somewhat confusing exception message with append

Tomas Nordin <[email protected]> Wed, 19 Mar 2025 23:09:56 +0000
Newsgroups gmane.lisp.guile.bugs
Message-ID <[email protected]>
Hello Rob

Rob Browning <[email protected]> writes:

> Tomas Nordin <[email protected]> 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).