Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cpeterso
on July 30, 2019
|
parent
|
context
|
favorite
| on:
What’s New in ES2019
You can also declare variables in conditional statements in C/C++ like
https://godbolt.org/z/h0BR8K
int foo(int); int bar(int x) { if (int y = foo(x)) return 0; return x; }
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: