News for hackers. Stuff that matters.
Re:What Is Rust's Hole Purpose? by pphysch on Friday February 18, 2022 @02:39PM (#30390143)
You can represent sum types with type assertions on interfaces.

Frankly, outside of subjective error handling preferences, I don't see much value in sum types. They encourage building towers of type abstractions and obscure what is happening on the wire.

Re:What Is Rust's Hole Purpose? by friedman23 on Friday February 18, 2022 @07:33PM (#30393190)
> obscure what is happening on the wire

They obscure nothing, sum types in rust have 0 overhead. You cannot in go faith argue that Go gives a more accurate representation of what occurs "on the wire" than Rust.