Olov did write "because val leaks to the outer scope". That's a reason for the convenience of

if (let x = ...) { /* x in scope here */ }

(or const), vs.

{ let x = ...; if (x) { /* ... */ } }

Braces count, this is winning in C++.

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to