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

>Actually, a lot of the issues that C/C++ programmers have when they are new to Rust seem to be precisely because idiomatic Rust code (which can help to avoid borrow checker issues) is often in a more functional Scheme/OCaml style.

Well, those are not the issues that concern me, or that most (in blogs/HN posts/comments/etc I've read) consider the hard parts. It's the borrow checker.



Right. But if you use a data-oriented FP approach, then you will often avoid borrow checker issues entirely. It is people trying to apply OOP patterns with lots of mutable state that constantly run into borrow checker issues.

The borrow checker might seem like the problem, but the solution is to learn to code in a new style.




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

Search: