Hacker News new | past | comments | ask | show | jobs | submit login

Yeah, this only works if you initialize at the same time as declaration. And as you say, without const, the same code is generated. All it prevents is accidental reuse of current_foo, which may have some value.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: