Terminology

From J Wiki
< Help(Redirected from Help/Primer/Terminology)
Jump to navigation Jump to search


<=   =>

All programming languages have things in common with the English language. Where the analogy is close, the J programming language tends to use English-language terms in preference to terms used in math and in other programming languages.

You could, as in other languages, say "line of code", but in J you tend to say "sentence" instead. Similarly, you could refer to the + "function", but in J you usually say "verb".

Some English-language terms used in J are: alphabet, word, sentence, phrase, verb, noun, adverb, and conjunction.

There are several reasons for this approach. One problem it deals with is the plethora of related, but subtly different, uses of traditional terms in math and in numerous programming languages. For example: function, subfunction, operator, program, routine, and subroutine are all used in slightly different ways in different programming languages. Rather than inherit this confusion, J adopts its own terms, and defines them precisely within its context.

Using English terms gives you a good idea of what the general meaning of the term is in J. In addition, using natural-language terms encourages and facilitates taking the English statement of a problem and more directly writing the corresponding J sentences.

Use of the J terms is encouraged, but certainly isn't mandatory, and using the term "function" instead of "verb" is quite acceptable.

<=   =>

Primer Index               Hover to reveal titles   -   Click to access   -   Current page is highlighted
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
45 46 47 48
50 51 52 53 54 55 56 57
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
97 98 99 100 101 102 103 104 105 106