2 ms·
Rust syntax being busy is something I've heard, but people point to things like lifetime annotations, which sort of make Rust what it is so...
by AsyncAwait 8y ago
Rust syntax being busy is something I've heard, but people point to things like lifetime annotations, which sort of make Rust what it is so...
- majewsky 8y agoAlso, lifetime annotations are not required on the overwhelming majority of functions. If you have, say, fn substr(text: &str, start: usize, length: usize) -> &str; the compiler will infer automatically that the return value inherits the lifetime of the `text` argument. I don't find that line up there particularly busy.