3 ms·
Rust has some very desirable properties to me. Writing Rust programs from scratch is not as scary as I've heard of from the internet either. The documentation i
by e3b0c 10y ago
Rust has some very desirable properties to me. Writing Rust programs from scratch is not as scary as I've heard of from the internet either. The documentation is excellent, the compiler diagnostic messages are very helpful and the notorious borrow checker didn't stand in my way that much. And I love Cargo and Cargo.io. I have some projects where Rust is the saner choice than Go or other GC based languages.
That said, there are actually drawbacks of Rust compared with Go, IMHO. When facing a moderately large project written by others, the ergonomics for diving into the project is not as smooth as Go. There is no good full-source code indexer like cscope/GNU Global/Guru for symbol navigation across multiple dependent projects. Full text searching with grep/ack does not fill the gap well either since many symbols, with their different scopes/paths, are allowed to have the same identifier without explicitly specifying the full path. That makes troubleshooting/tracing a large, unfamiliar codebase quite daunting compared with Go.
- steveklabnik 10y agoRLS will hopefully full that gap.
- rattray 10y agoRLS?
- anuragsoni 10y agoit stands for Rust Language Server Github project: https://github.com/jonathandturner/rls https://github.com/jonathandturner/rls Announcement: https://internals.rust-lang.org/t/introducing-rust-language-server-source-release/4209 https://internals.rust-lang.org/t/introducing-rust-language-...
- deleted 10y ago[deleted]
- wocram 10y agoI haven't had too many issues with Intellij-rust or racer failing to jump between symbols. There are also many other tools that provide indexing, eg. ide [plugins], kythe, and the rust language server.
- xorxornop 10y agoHmm, I've had a very nice experience using Rusty Code in VS Code. Some useful refactoring functionality is missing for sure, but a lot of that will become possible quite shortly from RLS (Rust Language Server, a la how TypeScript works in VSC), and if your preferred editor has support for the language server spec (it's a open source common spec, not specific to Rust), it will support it at parity, too.
- Manishearth 10y agoYouCompleteMe on Rust has pretty good JumpToDefinition support for Rust. You can also use https://github.com/nrc/rust-dxr https://github.com/nrc/rust-dxr to index rust code via DXR. IIRC ctags also works with Rust. RLS should cover this pretty well too once it happens.
- leshow 10y agocrates.io