I’m working on getting into rust. I have both Intellij and Rusty Code up and working. However, I find that they struggle too much with type deduction. A simple thing like
let bob = vec![1,2,3,4]; bob.
fails with both to give any suggestions that are worthwhile (am I just setup wrong?)
I can write code like this
let bob : Vec<_> = vec![1,2,3,4]; bob.
And that does get some type help. However, if I take it just a step further to
let bob : Vec<_> = vec![1,2,3,4]; bob.iter().
it stops working again.
So I’m left wondering “Am I doing it wrong?”. I come from a java background and rely really heavily on my IDE. However, is that not the right workflow for rust? Should I instead have the docs open up at all times and rely on that and compiling instead?
Also, what is everyone else doing for debugging? Print statements? Manual GDB wrangling? unit tests?
Any tips and pointers or just a discussion of what your current workflow is would be helpful to me.