News for hackers. Stuff that matters.
Re:Is Go Duck-Typed? by throwaway894345 on Wednesday March 04, 2020 @04:23PM (#22488295)
Frequently in Go I find that single-method interfaces are easier to work with when made into a closure. Instead of `type Foo interface { Foo() }`, I often find `type Foo func()` easier to work with. There are probably exceptions to this; I'm mostly just voicing my own observation.

There are no comments on this comment yet.