this post was submitted on 25 Sep 2023
15 points (94.1% liked)

Rust

5979 readers
96 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] snaggen@programming.dev 7 points 1 year ago (1 children)

I think this is was a great read, since it shows a few important things

  • Coming to rust from C is not trivial, you are required to learn a few new concepts (or not really new, but implicit in most languages, formalized in rust).
  • When coming from C and you understand the basic concepts, it is easier to learn rust than from many other languages, since you understand what is going on under the hood. Dangling pointers, and use after free aso, are known concepts. C/C++ programmers don't have to fear rust.
  • The rust book is a great source of information.
[–] kairos@programming.dev 3 points 1 year ago (1 children)

Yeah, I think my issue was that I was trying to do this the "C" way and this doesn't fit the Rust ownership model.

[–] 5C5C5C@programming.dev 5 points 1 year ago

And you've pretty much made it over the tipping point into being a Rustacean when you embrace the fact that it is a good thing that Rust doesn't let you do things the way you're familiar with from other languages because those familiar ways were always the source of immense suffering without you even realizing it.