On Mon, Jan 20, 2025 at 7:00 AM Benoît Marguerie <bmarg...@gmail.com> wrote:
>
> Even if the spec precises :
> > slice arguments are not permitted
>
> I wonder if there's any real technical reason to prohibit the use of the 
> slice variadics during min/max buildin functions, when it's allowed with 
> append (which creates inconsistent behavior between buildin functions)?

Calling append with an empty slice is well defined. Calling min or max
with an empty slice is not.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVGztAFK4ouVtzyuMjmUej84Jgk1se0tz%3DWmxJn3NnVTg%40mail.gmail.com.

Reply via email to