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

Just turn all &str to String and use .clone() liberally while you get used to the language, and you'll avoid having to think about the borrow checker for most basic applications.

I think Haskell is stuck like you say because if your code is overly wordy, it will run slowly too, yet Rust is still relatively fast even if you do .clone() a lot.



Ah maybe that's how I should approach. I was definitely interested in Rust as as personal replacement for C or C++




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

Search: