News for hackers. Stuff that matters.
Re:How I went about learning Rust by estebank on Friday July 15, 2022 @11:19PM (#32114949)
I would say that traits are a better analogy for dynamic types, but at the same time you can think of enums as closed sets and traits as open sets, so they are different ways of encoding sets of possible structure and functionality, more alike in what they provide than it initially seems.

There are no comments on this comment yet.