Re:Generics facilitators in Go
by jayd16 on Wednesday December 22, 2021 @09:26PM
(#29657958)
Some examples here show the difference:
https://stackoverflow.com/questions/4685563/how-to-pass-a-fu...
vs
At least anonymous types meant you didn't have to manually name all your listener boilerplate.
[ Parent
| on HN ]
Ah. Yeah, this would have made callbacks simpler in the case where there is only one method. I was thinking about JavaBeans EventObject/EventListener usage, which is so tedious, but enables introspection by tools.