I learned a lot from this thread, thank you. Intuitively the spec seems to conclude a pointer to an empty struct is a different type of pointer? Normally a pointer wouldn't be able to change values during execution, so we can do things like key maps by pointers. But if every evaluation of the empty struct pointer can lead to a different outcome, isn't that the same as the address of the pointer arbitrarily changing? Otherwise if two pointers are different, then the interface comparison of two pointers must be different also since the pointer address does not change? On Feb 25, 2024, at 1:02 AM, tapi...@gmail.com <tapir....@gmail.com> wrote: -- 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/96D5EEE6-5E5B-4064-BAA3-AD8B985FE1F0%40gmail.com. |
- Re: [go-nuts] Equality of interface of an em... 'Axel Wagner' via golang-nuts
- Re: [go-nuts] Equality of interface of an em... burak serdar
- Re: [go-nuts] Equality of interface of ... burak serdar
- Re: [go-nuts] Equality of interface... burak serdar
- Re: [go-nuts] Equality of inter... burak serdar
- Re: [go-nuts] Equality of i... burak serdar
- Re: [go-nuts] Equality... jake...@gmail.com
- Re: [go-nuts] Equa... 'Axel Wagner' via golang-nuts
- [go-nuts] Re: Equality of interface of an em... tapi...@gmail.com
- [go-nuts] Re: Equality of interface of ... tapi...@gmail.com
- Re: [go-nuts] Re: Equality of inter... brien colwell
- Re: [go-nuts] Re: Equality of i... 'Axel Wagner' via golang-nuts
- [go-nuts] Re: Equality of interface of an em... tapi...@gmail.com
- Re: [go-nuts] Equality of interface of ... Brien Colwell
- Re: [go-nuts] Equality of interface... 'Axel Wagner' via golang-nuts
- Re: [go-nuts] Equality of inter... Brien Colwell
- Re: [go-nuts] Equality of interface... tapi...@gmail.com
- Re: [go-nuts] Equality of inter... Jan Mercl
- Re: [go-nuts] Equality of i... tapi...@gmail.com
- Re: [go-nuts] Equality... Kurtis Rader
- Re: [go-nuts] Equa... Marvin Renich