Oleg wrote: > isMunchausen=: = +/ @: ^~ @: digits Martin replied > This spacing suggests that ^~ is a sub-phrase > of the expression -- which is not true.
One of my first, and most powerful, J epiphanies was that f@:g~ is actually (f@:g)~ and not f@:(g~) ... but that _it didn't matter_. Can you think of a case where f@:g~ -: f@:(g~) doesn't hold? When I had this realization, years ago, I remember thinking "I'm beginning to get this stuff..." Oleg wrote: > Note also, no space is expected before =: > unless aligned vertically in a group of lines. I disagree here (and believe this expectation is very prevalent). I prefer space between the name and the copula, so that the name stands out. Assingment is a side effect, and I want my side effects obvious. Often, I'll align all the global (and sometimes even the local) copulae in an entire script, just so it's obvious at a glance what names are assigned. But that's a (long) extension of "aligned vertically in a group". -Dan ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm