Your supposition is not quite right. Characters are not in the domain of arithmetic operations and produce domain error.
HOWEVER, when a verb that is executed on an empty argument is executed on a cell of fill, and the execution on the fill cell results in error, the error is ignored and execution proceeds as if the execution had returned 0. Henry Rich On Fri, Jun 9, 2023, 5:33 AM Mike Duvos <mdu...@gmail.com> wrote: > Hi, > > Isn’t it a convention that a null character vector behaves the same as a > null numeric vector in an arithmetic context? > > I get the following results in J > > $$ 2 2 #: i. 0 > > 2 > > $$ 2 2 #: '' > > 1 > > > Yet in APL, of course… > > > ⍴⍴2 2 ⊤'' > > 2 > > ⍴⍴2 2 ⊤⍳0 > > 2 > > > > This seems somewhat unhelpful. > > > Regards, > > Mike > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm