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

I feel like the Rust compiler is just yelling at me constantly

This is all about your frame of mind. When I started learning Haskell I felt the same way. Now I treat it differently. I ask the compiler questions and it gives me the answers. What is the type of this partially-applied function? Oh, that.

It helps to have an editor and workflow that supports this style of programming. Writing large amounts of code and submitting it in batch to the compiler is just going to give you a headache when you get dozens (or more) errors and warnings. With a tool like emacs flymake/flycheck, you can get continuous feedback and use hotkeys to jump to and quickly fix errors as they occur, rather than letting them pile up.

a lot of patterns from C++ land don't really translate well into Rust code

Well of course. Rust is a new programming language, not a rehash of C++. To take full advantage of Rust you need to learn its patterns and idioms.



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

Search: