News for hackers. Stuff that matters.
Re:Why use Rust on the back end? by hot_gril on Monday March 20, 2023 @06:34PM (#35239814)
Idk if you'd call it syntax or what, but what makes Rust pedantic is that you're always worrying about lifetimes, types, explicit errors (as opposed to exceptions), and other things you mostly don't think about in JS or Py. Same as with C++ or other languages of that nature. Rust holds your hand more and is just better than C++ in general, but you still have to tell the compiler precisely what you're doing.

To answer your question, yes. This is also what I try to hint people at work who scoff at JS and refuse to move past "real programmer" languages, most of their talent is replaceable by GPT.

Re:Why use Rust on the back end? by DeathArrow on Tuesday March 21, 2023 @06:11AM (#35244364)
> It's like C++ only nicer and safer

Rust is enforcing safety while C++ does not. C++ can be safe if you need it to be. Just use safe constructs.

I'd argue that some people might not find Rust nicer.

Re:Why use Rust on the back end? by hot_gril on Tuesday March 21, 2023 @12:57PM (#35249008)
C++ won't be as safe as Rust unless you use it like Java, copying everywhere or overusing shared_ptr so you don't worry about lifetimes, which nobody really does.