Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)



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

Search: