3 ms·
Well, it's similar to math and that was there long before lisp or C
by quickben 10y ago
Well, it's similar to math and that was there long before lisp or C
- int_19h 10y agoMath notation uses := for assignment and = for equality, no? So in that sense Algol and the Pascal family are more consistent with that, while C actually diverged.
- majewsky 10y agoDepends on your field. Some math subjects would argue that "assignment" does not exist, because the same name within the same scope always refers to the same value, whether it's known or not. Within algorithms, I'm most used to "<-" for assignment, for example "i <- i + 1" inside a loop to count iterations.