miniblog.
← Back to all posts
Apr 28, 2022 at 02:50
The examples coverage in Rust is exceptionally good. It's weird how few languages include an example in their stdlib docs for sorting.
https://doc.rust-lang.org/std/vec/struct.Vec.html#method.sort
Vec in std::vec - Rust
A contiguous growable array type, written as `Vec<T>`, short for ‘vector’.
Wilfred Hughes
Related Posts
Jun 23, 2022 at 17:10
The Rust docs include a surprisingly readable example of how `for` loops desugar into essentially a while loop with a pattern match:
std::iter - Rust
Composable external iteration.
Wilfred Hughes
Shared words: Rust, examples, include, docs Score: 106
Sep 29, 2018 at 22:08
It's fascinating that older lisps let you adjust the load factor in hash maps yet few newer languages expose this setting. For example, Rust doesn't have it yet:
rust/src/libstd/collections/hash/map.rs at 70073ec61d0d56bca45b9bd40659bb75799cd273 · rust-lang/rust
Empowering everyone to build reliable and efficient software. - rust-lang/rust
Wilfred Hughes
Shared words: Rust, examples, few, languages Score: 98.7
Oct 28, 2016 at 13:44
Considering how many languages compile to JS, it's a shame that stdlib docs rarely include a REPL.
Wilfred Hughes
Shared words: stdlib, languages, include, docs Score: 90.4