Don Guinn <donguinn@...> writes: > > Agreed. But for completeness "nl" should list these names if they are > defined globally, particularly to avoid confusing new users. If (4!:1) is > run tacitly then the names can be listed. Starting from the definition of > "nl", something like the following accomplishes this. This is an excellent point... I had no expectation that (4!:1) would report differently than names would. And that was an unpleasant surprise that makes me not want to use the "shortcuts" -- and use the raw power of the !: instead. > By the way. Noticed that the definition of "names" is defined as (list_z_ @ > nl). Shouldn't it be (list_z_ @ nl_z_)? Thank you again, Don. It occurred to me that the locale was missing from nl in that case... but I was expecting that there was a valid reason. As a new-comer, I am always thinking that there's another "surprise" around the corner. LOL
> On Sun, Sep 25, 2011 at 11:16 AM, Raul Miller <rauldmiller@...> wrote: > > Arguably, it's bad practice to use global values with any of these names: > > m n u v x y > > > > These names have special meanings for J, and using them globally is > > likely to confuse people. Language/Library inconsistency causes more confusion. Also, the available books are full of examples where x and y are used. So, simply copying and pasting the examples leads to bad practice. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
