HN Top New Show Ask Jobs

settings

Theme

Hand Mode

Feed

Comment by npteljes

Comment by npteljes 3 hours ago

0 replies

View on Hacker News

That's exactly right. Looking at the Assignment Operator Wiki page, it's also clear where these notations come from.

I think an easy way to look at it, for someone coming from a math background, is to think of programming lines as instructions, instead of statements. x=x+1 can be then read as "let x be x+1", and that's it.

https://en.wikipedia.org/wiki/Assignment_(computer_science)