3 ms·
>and even the pre- and post-increment operators cleanly lined up with the PDP-11 addressing modes. pre- and post- increment operators cleanly lined up with...
by fsckboy 26d ago
>and even the pre- and post-increment operators cleanly lined up with the PDP-11 addressing modes.
pre- and post- increment operators cleanly lined up with... the programmer's conceptualization and objectives--the index is/was frequently used in other contexts than loop bounds and indexing. if that's not your conceptualization, don't use that operator. whether you are on a PDP-11 makes no difference.
- fsckboy 25d agoand just to make the point more firmly, PDP-11 didn't have a preincrement/postincrement pair of instructions, it simply had indexing with post-increment of the index or pre-decrement, i.e. one paradigm, not two. Or in other words, "stack" behavior.