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

> In the background "var a=i, var b=a+j", might compile as something like "var b = i; b+=j";

Believe it or not, many compilers internally represent mutable variables as a sequence of immutable variables: https://en.wikipedia.org/wiki/Static_single_assignment_form

Edit: I should clarify that I mean "immutable" in the context of primitive values like integers.




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

Search: