4 ms·
No, it's not auto-completing function blocks, just simple expressions that are easy to validate. E.g., let lo = 0; let hi = vec.len(); let mid = lo
by vladf 6y ago
No, it's not auto-completing function blocks, just simple expressions that are easy to validate. E.g.,
let lo = 0;
let hi = vec.len();
let mid = lo + (hi
will autocomplete to `(hi - lo) / 2` as the second autocomplete option (so I'd hit tab twice). If you were to "score" it based on top-5 it'd probably be pretty bad at guessing my intent, but then again, I get to _opt-in_ to suggestions so it just needs to be right often enough, as it doesn't bother me much to keep typing.