Quoting constructs: Difference between revisions

m
(J)
Line 200:
Sequences of numbers or characters which contain exactly one element are treated specially -- they do not have a length of their own.
 
J also has a constant language for numbers, which gives special significance to embedded letters. For example <tt>12e3</tt> is the floating point value 12000 (but J extends this notation to support some numbers in bases other than 10, extended precision integers, rational values and complex values and approximations involving certain commonly used constants, such as pi).
 
The multiline scripts are special cases of the mechanisms for defining verbs, adverbs and conjunctions (what might be called functions or macros or operators or procedures in other languages) which instead provide the raw characters of the definition. The old form (beginning with <tt>0 : 0</tt> and ending with a line containing a single right parenthesis and no other displayable characters) is different from the new form (beginning with <tt>{{)n</tt> and ending with a line which has <tt>}}</tt> and no other characters preceding it) in the way that any following part of a surrounding sentence is arranged. These values of <tt>A</tt> would be equivalent:
6,962

edits