David A. Green wrote:
Why do programmers use result[LEN(result),1]? Doesn't result[1] do the same
thing but easier, quicker, and more readable?
<snip>

variable[1] to reference the last byte of variable is a relatively recent addition to Universe. Where "relatively" refers to the lifeline of the Pick/PI/U2 product family.

So you'll typically see it either in older code, or in code written by guys who've been programming a while and haven't picked up on all of the "newer" facilities.

I vaguely remember it being introduced and enjoying the fact that I could write less code and have it more readable. So it became one of the things I tended to retrofit as I was working on existing code, not worth looking for, but worth cleaning up while I was in the neighborhood.

--
Allen
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to