Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I agree. Listing 11 won't even compile as was_empty is declared const.


That use of const is fine, as it's never modified after the initial value is assigned.


No, Jabbles is correct: look at listing 11. It's reassigned five lines down.


Oops, I was looking at listing 8. Thanks.




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

Search: