Philip wrote:
> I *want* to write =: but I often end up writing =. 

Are you using the J IDE?  If so, a solution to your problem may be syntax 
highlighting.

Go to Edit>Configure>Color , press the Add button, and select "global 
assignment".  Then, from the "Item" list, select "global assignment" again, and 
press the Color button.  Select some appropriately garish color, like bright 
orange.  

Repeat the procedure for "local assignment".  Perhaps pick a subdued color for 
that, or a contrasting garish color, like hot pink.

Now, paste this into a script file:

   some_verb =: verb define
       
      global =:  'may the gods forever'
      local  =.  'protect us from typos'

   )

If you're not using the J IDE, you can emulate this behavior in most modern 
text editors.  

I recommend that you avoid the "  =:  cover function" method; it introduces 
subtle complexities, which are not worth analyzing just to compensate for typos.

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

Reply via email to