On Tue, May 21, 2013 at 5:55 PM,  <[email protected]> wrote:
> RM>     We sometimes say that J evaluates in a right-to-left order.
> RM>     And that's fairly accurate.
>
> Caveat instructor.  In the last workshop I gave, I learned that
> that is actually fairly ambiguous.
>
> At least two or three participants concluded that
>
>         10 + 6 - 9
>
> yields 13: nine minus six plus ten.
>
> Fair enough, I'd say, given that R->L prescription.  I'll be certainly
> more cautious/explicit when doing the next workshop.

Yes. I had not thought about that point of view, but I can understand it.

I think we need to distinguish between "order of evaluation" and
"orientation of ___" ... something.

Perhaps the simplest way to approach this issue is to start out with
some examples

    5 - 3
2

It's probably wrong to jump into our grammar for combinations of
operations where we have not given any examples of those operations in
isolation.

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to