2 ms·
Good. Adding the `let` and `const` scoping rules to javascript was a damn good idea. Although non-lexical lifetimes has nothing to do with this, Rust has had bl
by creatonez 9y ago
Good. Adding the `let` and `const` scoping rules to javascript was a damn good idea. Although non-lexical lifetimes has nothing to do with this, Rust has had block-based scoping since before 1.0. Non-lexical lifetimes are a refinement to allow certain cases where a value is borrowed outside a block but can safely be borrowed again inside that block. And other cases.