Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

FWIW, it's worth being precise on what "easier" means: Rust isn't necessarily an easier language to get started in than C++ and so on. Like Haskell, the compiler complains at you, and complains a lot. (Which can be rather discouraging for a beginner.)

However once you've satisfied the compiler, your program often runs perfectly first time (modulo logic bugs, which a compiler can help with (like warning about dead stores, and mutable variables that aren't mutated... which rustc does) but can't detect or fix in general). This is in stark contrast to C/C++ etc where a program normally needs a liberal application of gdb and valgrind to be safe.

Hence: I'd say it's harder to write code but easier to write correct code in Rust.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: