Hi Don,
You said:
> Maybe I'm really missing something, but why use "[" and "]" at all?
> Just use "x" and "y".
That's an interesting question. If I have the J expression:
%:x + y
and want to make a verb sqrsum, I could define a way of doing it - that
doesn't presently exist exactly in this form - such that:
sqrsum =: %:x + y
or that:
sqrsum =: %: [ + ]
and that in either case:
3 sqrsum 5 is equivalent to: %: 3 + 5
In the second case
1) I have a form that is full of nothing but verbs.
2) I can state that the arguments are defined implicity.
In the first case I need a convention that x and y are special
nouns used in named verbs with a special purpose. I obviously have nouns as
well in this verb definition, and I think it is harder to suggest that
argument
inclusion is implicit.
Don
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm