Any book out there that can ease me into Rust from C?

  • jameseb@lemm.ee
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    1
    ·
    1 year ago

    The Rust book is the official standard resource for learning Rust. It assumes some experience in another programming language, but it doesn’t matter which one (that is, it isn’t aimed at teaching Rust as a first programming language), so there’s no reason why you couldn’t read it with some experience in C.

    Depending on what sort of C programmer you are, you may find Learn Rust the Dangerous Way of interest as well.

  • TechNom (nobody)@programming.dev
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    I found Jim Blandy’s Programming Rust to be quite easy to follow. On the other hand, The Rust Book is free. Anyone with C or C++ background will find it quite easy to get started in Rust with any available resource.

  • Tim@programming.dev
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    edit-2
    1 year ago

    This going to be an unpopular opinion… but I consider chatGPT as an excellent teacher. You can ask about similarities and differences between C and Rust, you can ask to convert code from C to rust… it can get you started easily.

    Edit: ah you were asking for a book. Then ignore this :D