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

Which is really the odd ball. In a left-to-right language, it's sort of bizarre that we don't write `4 = x' since the rvalue tends to be the more complicated part of the expression.

The curious bit is, AT&T assembly syntax does follow this convention so you'll see something like `mov $5, ax'.



Indeed. Assignment should really look like something like this this:

  expression -> variable;


Forth uses

  expression memory-location !
to store and

  memory-location @
to read.




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

Search: