Re:Untapped potential in Rust's type system
by willeh on Monday June 14, 2021 @07:27AM
(#27501358)
Interesting article, but I think the key to writing idiomatic Rust is not to stretch what the type system can do but rather be happy at what It can express and avoid unnecessary abstraction. The compile-time guarantees that we have to prove in Rust, also serve to give a hint for when not to abstract.
[ Parent
| on HN ]
I think pushing the boundaries of what is idiomatic can sometimes be valuable. Look how much idiomatic C++ has changed since 1995. Or what is idiomatic in JavaScript now.
Re:Untapped potential in Rust's type system
by fnord123 on Monday June 14, 2021 @11:32AM
(#27503812)
"sometimes" is doing a lot of heavy lifting here.