Re:Show HN: A Graphviz Implementation in Rust
by jll29 on Thursday March 17, 2022 @07:56PM
(#30717184)
Thanks, Kevin, that was it. I didn't expect Rust to (still) move that fast. ;)
[ Parent
| on HN ]
Re:Show HN: A Graphviz Implementation in Rust
by tialaramex on Thursday March 17, 2022 @10:46PM
(#30718256)
This (arrays implementing IntoIterator) is probably the improvement with broadest impact of the last 12 months.
It even makes lots of Rust's documentation examples more readable. Previously if there's an iterator involved somewhere, the doc example ends up constructing say vec![1,2,3,4,5] and a reasonable novice might ask why do we use a vector here? Today Rust's documentation just says [1,2,3,4,5] because sure, an array of five elements 1, 2, 3, 4, 5 that makes sense why use any other data structure?