On Tue, Oct 3, 2023 at 5:57 PM Jon Watte <jwa...@gmail.com> wrote:
>
> > Can you give us an example?
>
> I already gave examples! They're in the thread! In reality, we have the 
> insides of a compiler where this would be helpful in more complex cases, and 
> we have the insides of a graphql and JSON web interface where this would be 
> helpful in a more complex case, but I'm not about to post the hundreds of 
> lines of code that would be needed to set those up.

Thanks, but I'm looking for examples where it is important to permit
only type arguments that can be compared to nil.  Your examples seem
to me to be cases that would be addressed if we had a standard way to
compare a type to its zero value, such as https://go.dev/issue/61372
or https://go.dev/issue/62487  I'm asking whether there are cases
where we want the former but not the latter.  Thanks.

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 on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUyWo-NLfBd3fXkyW8za-DPpDiqBboZeyFtO23gg5po%2BQ%40mail.gmail.com.

Reply via email to