When I see Syntax Error, my first response is to count parentheses, which was 
not an issue in the instance mentioned.  I think Domain Error might have given 
me a better clue than Syntax.

The spacing of an error message directs my attention to either side of the gap, 
or to the gap itself.  Most often it will be a problem with applying the most 
recent, or intended, operation on the right.  It may occasionally relate to 
some malformation on the left.  In many cases it notes an incompatibility 
between left and right, as with Rank and Index errors or, less visibly, 
mismatched localizations.

The file Vocabulary/ErrorMessages does show examples of three types of Syntax 
Error, but not the type I encountered.  I shall work on inserting one.  (It 
does allude to this incompatibility under Domain Error, but not in the same 
form--and that's not the message I got.)
--AA

> On 16Jun 2020, at 8:00 AM, [email protected] wrote:
> 
> On the other hand, you could argue that the spacing of the error message 
> shows exactly where the error is, namely domain error on an assignment; 
> and the only domain error that applies to assignment is publicly 
> assigning a private name; and the current Wiki page explains that.

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to