3 pointsby Brysonbw7 hours ago3 comments
  • forgotpwd166 hours 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.

  • keernan6 hours 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