News for hackers. Stuff that matters.
Re:MDN Playground by timvisee on Thursday July 20, 2023 @09:12AM (#36799946)
Then you haven't seen Rust's documentation yet.

https://doc.rust-lang.org/std/index.html

Re:MDN Playground by sjsanc on Thursday July 20, 2023 @09:33AM (#36800197)
Compare MDN's entry for the `map` method

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

With Rust's

https://doc.rust-lang.org/std/iter/struct.Map.html

I find MDN to be a bit clearer, and they benefit from the in-browser runtime. All the extra detail in the Rust docs (blanket traits etc) were quite intimidating and distracting when I first started learning it.

Re:MDN Playground by timvisee on Thursday July 20, 2023 @09:36AM (#36800246)
That MDN page has a lot of noise and is not straight to the point. I guess that may be a side effect of JS though.
Re:MDN Playground by lucideer on Thursday July 20, 2023 @10:12AM (#36800726)
While both of these docs are pretty good, as someone who normally much prefers API references to "how to" formats, the MDN's "how to" approach here is succinct & just enough to cover reasonable bases, while the Rust API ref list is a bit too terse by comparison (& the Read More click out is a bit annoying).
Re:MDN Playground by recursive on Thursday July 20, 2023 @11:05AM (#36801580)
Where's the noise? I'm not seeing any.
Re:MDN Playground by ndriscoll on Thursday July 20, 2023 @10:32AM (#36801040)
You linked to the docs for the result type of `map`, not`map` itself. The method is here:

https://doc.rust-lang.org/std/iter/trait.Iterator.html#metho...

Re:MDN Playground by lytedev on Thursday July 20, 2023 @09:27AM (#36800115)
I'm partial to Elixir's documentation myself: https://hexdocs.pm/ecto/Ecto.html