On Mon, 2025-01-20 at 10:42 -0800, Ian Lance Taylor wrote: > Calling append with an empty slice is well defined. Calling min or > max with an empty slice is not.
If the only input to min/max were the slice, this would be true, but I do not think it is in the case that is implemented in the standard library where the signatures are fn(T, ...T), e.g. s := []int{}; max(42, s...) is 42. -- 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/aaba4e40fc468cb7228f2a4d30874e26535ca205.camel%40kortschak.io.