Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ufo
41 days ago
|
parent
|
context
|
favorite
| on:
John Carmack on mutable variables
I think he's just saying that mutation is ok if it's something loopy, like changing the loop counter or updating some running sum. So both i+=1 and ++i are fine.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: