domenic at domenicdenicola.com (2013-12-10T01:44:29.535Z)
Olov did write "because val leaks to the outer scope". That's a reason
for the convenience of
```js
if (let x = ...) { /* x in scope here */ }
```
(or const), vs.
```js
{ let x = ...; if (x) { /* ... */ } }
```
Braces count, this is winning in C++.
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