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

What about loop variables? Want to re-allocate them at each step?


Yes, please!

Signed, foldl


I make variables inside loops final. The compiler should automatically handle that and avoid unnecessary re-allocation.


Chances are a few (or probably even a lot of) temporary references aren't going to be that big a deal.




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

Search: