> I must really disagree.  I don't believe that it is necessary for the 
> purveyors of this or any language to set up checks for every mathematical 
> anomaly.

Well, in some languages such "checks" will be actually done
automatically - as an example, any lazy language can do that. Like the
following Haskell expression returning 0 as soon as it encounters 0 in
the left argument although the input list is actually infinite:

foldr1 (\x y -> if x==0 then 0 else x*y) ([1,2,0]++[4..])

Of course, J is not lazy, but even in J there is this kind of checks
for some arguments:

y=.0,1e7#1
*/y                 NB. returns 0 instantly on any processor type

I suspect it is done for boolean arguments processing..
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to