Yes, it might just have happened, since every programmer would choose the most efficient operation. However, if you want to use the language as an algebra, in which you can convert expressions into other equivalent expressions, it is a complication which might not be considered necessary. /Erling

Den 2017-09-07 kl. 20:46, skrev Xiao-Yong Jin:
On Sep 7, 2017, at 1:40 PM, Erling Hellenäs <erl...@erlinghellenas.se> wrote:

It is non-intuitive that (*: n) does not give the same result as (n^2). Maybe 
once this was decided because of performance reasons.
Just like, in C, I always do x*x, instead of pow(x,2).

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

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

Reply via email to