A quick correction to my own comment:

On Sun, Oct 1, 2023 at 8:35 PM Patrick Smith <pat42sm...@gmail.com> wrote:

> The problem with your code is that "T comparable" guarantees that two
> values of type T can be compared,
>

... but then I remembered the comparison can still panic at runtime, as per
https://go.dev/doc/go1.20#language

-- 
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 on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAADvV_ttdboLt0zvp%2BMKFDezbc4o4pNTX-1HuO6hK7uvToHxsA%40mail.gmail.com.

Reply via email to