If we are considering enhancing the error display, I would focus on
making obvious the specific primitive which threw the error. (In this
case, that would be the {: primitive.)
Compare:
({:}}:)t
|domain error
| ({:}}:)t
({:.}}:)t
|spelling error
| ({:.}}:)t
| ^
Thanks,
--
Raul
On Fri, Dec 10, 2021 at 11:15 AM Henry Rich <[email protected]> wrote:
>
> Now that I look into it, the error display of } }: as }}: is correct,
> because the error display removes all unnecessary blanks and }}: is two
> words.
>
> A display that fools RE, Raul, and me has got to be considered
> misleading, but I don't see what to do about it except be ready for next
> time.
>
> Henry Rich
>
> On 12/10/2021 10:59 AM, Raul Miller wrote:
> > I was confused for a moment when you said "The linear display of ({:}
> > }:) is wrong."
> >
> > But then I saw that you meant the linear display of ({:} }) in the
> > error message for ({:} })t
> >
> > It can also be instructive to try that expression:
> >
> > 9!:3(5)
> >
> > ({:}}:)
> > {:} }:
> >
> > In other words, in the current version of J, at least, when there's no
> > opening {{ a }} pair is not treated as a delimiter.
> >
> > That's arguably for the best. (Though for old J hands, it also
> > suggests that smiley/frowny delimiters -- in other words (: ): --
> > might have been more comfortable for us.)
> >
> > Thanks,
> >
>
>
> --
> 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