Hi Kip,

        You said:

> To me, forks and trains are part of the right to left grammar, so your
> question really puzzles me!  Something like

>    ([: %: [: +/ *:) 3 4  NB. The square root of the sum of squares of 3 4
> 5

    A true right to left that parallels interactive J would be:

        (%: +/ *:) 3 4
5

    Evaluated as follows:

    Square the list:    9 16
    Sum the list:        25
    Square root:         5

    With tacit J

        1)    Three verbs together in parentheses form a fork, so you have
                to stop it after two verbs with [:
        2)    Two verbs together form a hook, so you have to stop the hook
                with another [:

        ([: %: [: +/ *:) 3 4

    My point has always been that in simple cases fork/hook grammar is
wordier and more difficult to understand.

    That says nothing about complex examples, which I accept will probably 
be better expressed in fork/hook grammar. I am hoping to get some examples 
that will prove that point.

        Don

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

Reply via email to