News for hackers. Stuff that matters.
Re:Map[string]interface{} in Go: a user's manual by tptacek on Monday July 26, 2021 @03:22PM (#27964079)
I think you read my comment as an invitation to debate dynamic vs. static safety checking. That seems like a deeply uninteresting debate. I'm just saying, there's a clear purpose to `interface{}`, and the same pattern shows up (though obviously much less frequently) in Rust.
Re:Map[string]interface{} in Go: a user's manual by tomjakubowski on Monday July 26, 2021 @04:17PM (#27964856)
In the interest of supplying information to the curious, the Rust equivalent is to use an Any trait object with down casting.

https://doc.rust-lang.org/std/any/index.html