Dear J-ers,
As a dabbler in J, I am often bothered by the lack of any output mechanism in J that will allow me to inspect if two objects are equal (as determined by =).
One such example is
x=.1
y=.,:1
x
y
Both x and y will print as 1. I need to print $x and $y to see the difference.
Just today I have come across another similar situation that is still puzzling me. I have two objects, good and bad:
good
┌─┐
│1│
└─┘
bad
┌─┐
│1│
└─┘
Both print the same, as you see. Both are atomic:
$good
NB. Empty
$bad
NB. Empty
Yet they are not the same:
good=bad
0
Let's look inside the boxes:
(>good)=(>bad)
1
Now they are the same! So where can the difference possibly be?
I have not shown how I got good and bad (they are the results of some complex math procedure that is irrelevant here).
My question is: How to debug in such a situation? More specifically, I want to make a feature request to have a print command that provides a visual representation that is faithful to the = operator.