I did fix the lifetime error after taking this screenshot, this was another time where I was just on the edge of my understanding of rust lifetimes and rustc's hints got me over the finish line. What's more is I feel like I'm close to having a pretty confident understanding of rust's lifetimes.

I passed the "try stuff and pray" stage a long time ago, but I've been on a plateau of "I can do most things but I occasionally get just completely stuck" for months if not half a year now.

Reply to this note

Please Login to reply.

Discussion

I'm still in the first of those stages, mostly :)

What IDE do you use? I'm finding VSCode's hand holding very helpful indeed, only a couple minor quibbles with it.

I actually use good ol' vim with vim-lsp, asynccomplete, and asyncomplete-lsp (which uses rust-analyzer as a language server just like VSCode)

It was actually surprisingly easy to set up, but my config was subtly wrong for months also lol

Unfortunately I do think some kind of IDE support is a hard requirement for writing rust, there's wayyyyy too many things to memorize, types being inferred behind your back, etc to not get machine support.