On Tue, Sep 27, 2011 at 3:25 PM, Devon McCormick > On the related
issue of tacit versus explicit, I, too find that long, tacit
> expressions are hard to read though I'm slowly improving my ability to do
> so. Compare this simple explicit version of a verb
>
> quoteIfSp=: 3 : 0
> ifsp=. '"'#~' ' e. y
> flnm=. ifsp,(y-.'"'),ifsp
> )
>
> (where the final assignment is purely documentary) to its tacit equivalent
>
> (] ([,[,~ '"' -.~ ])~ '"' #~ ' ' e. ])
>
> Perhaps a compromise would be useful:
>
> quoteIfSp=: ] ([,[,~ '"' -.~ ])~ '"' #~ ' '&e. NB.* quoteIfSp: surround
> name with '"'s if embedded spaces (stupid MS!).
Or, perhaps:
quoteIfSp=: '"' ([,],[)^:(' 'e.]) -.&'"'
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm