• stingpie@lemmy.world
    link
    fedilink
    arrow-up
    10
    arrow-down
    4
    ·
    edit-2
    1 day ago

    I struggle to learn rust because the semantics and syntax are just so awful. I would love to be enthusiastic about rust, since every seems to love it, but I can’t get over that hurdle. Backporting the features into C, or even just making a transpiler from C to rust that uses annotations would be great for me. But the rust community really does not seem interested in making stepping stones from other languages to rust.

    • pheggs@feddit.org
      link
      fedilink
      English
      arrow-up
      9
      ·
      1 day ago

      I learned a bit of rust and I think it’s just about getting used to it. It’s fairly subjective, and people say the same about C++. I also prefer the C syntax because I find it’s simplicity extremely elegant and prefer it to have fewer features. And I like it for it’s consistency, on linux the FHS is based up on C, and it just somewhat feels ugly to break that consistency.

      But I also acknowledge the advantages of rust.

    • banshee@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 day ago

      I’ve personally become pretty fond of the syntax and incorporation of FP features. In all fairness though, I haven’t written much C or C++ for the last two decades.

      Rust incorporates some of my favorite features from FP with handy green thread ergonomics. I’m not a fan of Go, so this gives me a great option for microservices when I can avoid Node.js.