News for hackers. Stuff that matters.
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.
Re:Untapped potential in Rust's type system by nine_k on Monday June 14, 2021 @08:45AM (#27501889)
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.
Re:Untapped potential in Rust's type system by marshray on Monday June 14, 2021 @06:06PM (#27508929)
Sometimes life hands you lemons, and sometimes it hands you Box<dyn Fruit>.
Re:Untapped potential in Rust's type system by klyrs on Monday June 14, 2021 @12:20PM (#27504489)
This article is about curiosity, not best practices.