News for hackers. Stuff that matters.
Re:I can't keep up with idiomatic Rust by antoinealb on Thursday April 09, 2020 @05:19AM (#22820956)
I think you can do the same in Go, using the empty interface (that can represent any type) and then having the user cast it to the correct type. Unfortunately this is not type safe, and type safe generics in go, such as maps is only available to the compiler.

There are no comments on this comment yet.