logoalt Hacker News

jcgllast Tuesday at 9:23 PM1 replyview on HN

> Yes, Go can hardly be called statically typed, when they use the empty interface everywhere.

How often are you using any/interface {}? Yes, sometimes it's the correct solution to a problem, but it's really not that common in my experience. Certainly not common in ways that actually make life hard.

Also, since generics, I've been able to cut down my use of the empty interface even further.


Replies

eruyesterday at 6:29 AM

Yes, generics have cut down on the times you need to use the empty interface.