3 ms·
> but because the borrow checker disappears when doing web development, you get so many free things from the language that you don't have to pay for. Don't you
by adamrezich 2y ago
> but because the borrow checker disappears when doing web development, you get so many free things from the language that you don't have to pay for.
Don't you end up paying for it with compile times? Because the borrow checker has to check all your lifetime annotations and do a bunch of work, just to come to the conclusion that your simple two-lifetime (or whatever) setup is in fact valid?
- unrealhoang 2y agolifetime checking is only done locally (inside function definition), not globally so it's relatively fast.
- steveklabnik 2y agoThe borrow checker isn't what makes Rust compile slowly. It's largely code generation. Borrow checker stuff appears near-instantly in your editor.
- adamrezich 2y agoGotcha—thanks for letting me know!