On 7/8/07, Sherlock, Ric <[EMAIL PROTECTED]> wrote:
Is there any advantage/disadvantage to using [: rather than @: or is it just a style issue?
It's mostly style, but [: u v is a fork while u@:v is not. This matters for argument precedence (and sometimes you need parenthesis with one which you would not need with the other): The ([: u v) variant needs parenthesis when it doesn't stand alone and can't be expressed as the right tine of a hook or fork. The u@:(v) variant needs parenthesis when v gets expressed as a compound verb. That said, note that names can serve the same role as parenthesis. For example: ex1=: ([: *: +/) % [: +/ *: ex2=: *:@:(+/) % +/@:*: sum=: +/ ex3=: *:@:sum % sum@:*: -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
