On Fri, Jun 27, 2008 at 3:58 PM, Jack Andrews <[EMAIL PROTECTED]> wrote: > i was pondering the benefits pros and cons of a left to right > notation.
One of the benefits is that they go well with writing monadic verbs as prefixes, not suffixes. APL notation, however revolutionary it was, is still influenced by common maths notation, which is why monadic functions are written on the left, and why the (-) and (%) expect arguments the order they do now. Another benefit is that we line expressions up to the left, so the important part of the expression is in one file. This way, you can usually easily find where a certain name is assigned to, because that statement often has the name on the left margin. > common calculators go left to right - 1 + 2 * 3 is 9. is > the fact that common calculators operate this way due to "common > sense" or an innate intuitiveness? That's a completely irrelevant issue here. You are referring to old calculators which had to have very little memory so they can evaluate such an expression incrementally as you type them only if the syntax is associative that way. Ambrus ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
