Category:J: Difference between revisions

Content added Content deleted
m (get the terminology right)
Line 92:
As a simple example: 2 is an array (with zero dimensions), 3 is an array, and < is a verb. The expression (2<3) compares 2 and 3 and returns a truth value indicating that 2 is less than 3. But the expression (<3) returns a box which contains the array 3. While the details here are a bit different, the general concepts should be familiar to users of other programming languages. (For example, in C, 2&3 performs a bitwise and between the two numbers, and &y returns a pointer to the value referred to by y.)
 
J would be considered weaklydynamically typed because of the generality of its arrays. But its type based syntax would lead some to consider it to be stronglystatically typed (though the simplicity of its syntax might invite criticism from people who prefer more complexity).
 
== J on RosettaCode ==