5 ms·
> it can be very hard to actually know what method you can call on a struct The rust-analyzer language server can autocomplete the available methods for a valu
by push-f 3y ago
> it can be very hard to actually know what method you can call on a struct
The rust-analyzer language server can autocomplete the available methods for a value.
- earthling8118 3y agoFurthermore you can use `cargo doc` to generate a documentation website that had everything you can do or you can use docs.rs for this. Whoever wrote this didn't embrace the tooling and just gave up.
- n3storm 3y agodepending on the autocompleter feels like asking to code to Chatgpt to me.
- push-f 3y agoI disagree, there's a big difference: rust-analyzer is deterministic and 100% accurate while ChatGPT is non-deterministic and hallucinates.
- underdeserver 3y agoYep. I can't remember method names for the life of me, which is why my best experiences have been with Go and Java: The IDE (always Jetbrains) knows, via the type system, what methods I can call.
- avgcorrection 3y agoThen you underestimate the power of ChatGPT by a facor of a million.