> In other words, why is the definition not "If x is an
> integer, then x{y selects item (#y)|x from y ." ?
I don't know the answer, but I suspect it lies in turning the question around:
why should { have that definition?
I can't answer that one either, but apparently it has appeal. You're in quite
good company with the idea:
http://www.jsoftware.com/pipermail/programming/2007-November/008827.html
I personally don't favor it, because today's definition makes certain classes
of bugs obvious, and the proposed one would make them subtle.
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm