I don't disagree with the idea that a mixing explicit and tacit gives
the best of both worlds.
However I think that like any language ease of reading explicit vs
tacit has a lot to do with fluency. And of course writing style.
Chunking (as was mentioned earlier in the thread) can be very useful:
   ifspc=: ' ' e. ]
   quot=: '"' ,~ '"' , -.&'"'
quot^:ifspc

or in J7:
dquote^:ifspc

On Wed, Sep 28, 2011 at 8:25 AM, Devon McCormick <[email protected]> wrote:
>
> 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!).
>
> In any case, with locales and local assignment, I don't see namespace
> clutter as being much of a problem.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to