Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
proemeth
on Feb 5, 2010
|
parent
|
context
|
favorite
| on:
All variables in Java must be final
What about loop variables? Want to re-allocate them at each step?
crux_
on Feb 5, 2010
|
next
[–]
Yes, please!
Signed, foldl
nradov
on Feb 5, 2010
|
prev
|
next
[–]
I make variables inside loops final. The compiler should automatically handle that and avoid unnecessary re-allocation.
j_baker
on Feb 5, 2010
|
prev
[–]
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: