Hmm... it looks like
https://code.jsoftware.com/wiki/Essays/Tacit_Expressions#Tacit_Valued_Explicit_Definitions
would be the right place to put an example like this.

I'm not sure that this particular example is general enough. I'll
sleep on it, and if I can't think of anything better, I guess I'll
just use it as is.

Thanks,

-- 
Raul

On Sat, Nov 20, 2021 at 10:48 AM Henry Rich <[email protected]> wrote:
>
> Damn, that's beautiful.  Can you make sure it gets into the Wiki
> somewhere prominent?
>
> Henry Rich
>
> On 11/19/2021 9:03 PM, Raul Miller wrote:
> > Actually, thinking about this, there's a way of abusing the parser to
> > express tacit definitions in a multiline format that's fairly
> > readable. For this example:
> >
> > glqtextmetrics=: _{{
> >    m=. '"',libjqt,'" glqtextmetrics ',(IFWIN#'+'),' i *i'
> >    u=. m&cd@(<7#00)
> >    (1&{:: [ chkgl2)@u"1
> > }}
> >
> > This is kind of a one-off approach, though, and when putting together
> > a library like gl2 it might be better to encapsulate some of this for
> > reuse.
> >
> > Thanks again,
> >
>
>
> --
> This email has been checked for viruses by AVG.
> https://www.avg.com
>
> ----------------------------------------------------------------------
> 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