|
|
|
|
|
by krisgee
1940 days ago
|
|
>- A friend of mine, when showing him the statement 'x = x + 1' was confused; surely, x cannot also equal x+1. I think the best thing that my CS 101 prof did was always refer to the assignment operator as "gets" so you'd say "eks gets eks plus one" out loud. It really helped divorce assignment and equality in my mind. |
|
It is less jarring to see:
Let x = x + 1
because it could be read: we have a given value for x, now let us replace that value with x + 1.