Settings

Theme

Idiomatic Rust – A peer-reviewed collection of Rust articles/talks/repos

github.com

3 points by Brysonbw a month ago · 3 comments

Reader

forgotpwd16 a month ago

Is this the correct link?

Rust Cookbook states it's a collection of examples to accomplish various tasks, some with brief explanation. But nothing that could be called article/talk/repo.

Should note, for anyone curious, that learning idiomatic Rust off those examples isn't straightforward.

E.g. https://rust-lang-nursery.github.io/rust-cookbook/file/dir.h...

The explanation simply states what the code is doing, the classic sin of code commenting. But no explanation given on why `anyhow::Result`, `main() -> Resut<()>`, `?` operator, `{:?}`, ... are used. If wanted to learn, those are what one would care about. But, if looking for a snippet to use for a task, what the cookbook is about, then is fine.

BrysonbwOP a month ago

Correct link: https://github.com/mre/idiomatic-rust

keernan a month ago

>>These examples are complete, and suitable for copying directly into new cargo projects. They are tested and guaranteed to work.

...guaranteed to work... seems to contradict - and thereby invalidate - waivers of liability contained within the licensing

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection